#!/usr/bin/env php getAvailableDatasets(); foreach ($datasets as $dataset) { echo $dataset->getIdentifier()." (".$dataset->getVersion().")\n"; $reader = $dataset->open(); $rows = 0; $headers = null; foreach ($reader as $row) { if (!$headers) $headers = array_keys($row); $rows++; } echo " # ".$rows." rows\n - ".join("\n - ",$headers)."\n"; }