Fixed readme

This commit is contained in:
Chris 2022-09-03 16:23:46 +02:00
parent 21bc519f7e
commit 493284b982

View File

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