Fixed readme
This commit is contained in:
parent
21bc519f7e
commit
493284b982
@ -14,10 +14,9 @@ You can now open the desired sets and do useful stuff with the data:
|
|||||||
use NoccyLabs\Dataset\DatasetManager;
|
use NoccyLabs\Dataset\DatasetManager;
|
||||||
|
|
||||||
$dm = new DatasetManager();
|
$dm = new DatasetManager();
|
||||||
$flavorsSet = $dm->getDataset("juicebox/flavordata/flavors");
|
$ds = $dm->getDataset("juicebox/flavordata#flavors");
|
||||||
|
|
||||||
$iter = $flavorsSet->filter([ 'brand' => 'fa' ]);
|
foreach ($ds as $row) {
|
||||||
foreach ($iter as $row) {
|
// row is an array
|
||||||
echo $row->get("flavor", "No flavor name? How?!") . "\n";
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user