Fixed readme

This commit is contained in:
Chris 2022-09-03 16:23:46 +02:00
parent 21bc519f7e
commit 493284b982
1 changed files with 3 additions and 4 deletions

View File

@ -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
}
```