if (PEAR::isError($defs)) { die($defs->getMessage()); } foreach ($defs as $def) { echo $def['definition']; } } } // }}} // {{{ options switch ($options[0][0][0]) { case '--help': help(); break; case '--match': foreach ($d->match($options[0][0][1]) as $matches) { echo $matches['database'] . ' : ' . $matches['word'] . "\n"; } break; case '--databases': foreach ($d->showDatabases() as $db) { echo $db['database'] . ' : ' . $db['description'] . "\n"; } break; case '--strategies': foreach ($d->showStrategies() as $strat) { echo $strat['strategy'] . ' : ' . $strat['description'] . "\n"; } break; case '--info': $info = $d->showInfo($options[0][0][1]);