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;
|
||||
|
||||
$dm = new DatasetManager();
|
||||
$flavorsSet = $dm->getDataset("juicebox/flavordata/flavors");
|
||||
$ds = $dm->getDataset("juicebox/flavordata#flavors");
|
||||
|
||||
$iter = $flavorsSet->filter([ 'brand' => 'fa' ]);
|
||||
foreach ($iter as $row) {
|
||||
echo $row->get("flavor", "No flavor name? How?!") . "\n";
|
||||
foreach ($ds as $row) {
|
||||
// row is an array
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user