19 Usage: php ${_SERVER[
'PHP_SELF']} <file> <handler> <key> [<value>]
21 If <value> is specified then <key> is set to <value> in <file>.
22 Else the value of <key> is printed only.
29 if (!class_exists(
"DbaReader",
false)) require_once(
"dbareader.inc");
33 $dba =
new DbaArray($argv[1], $argv[2]);
34 if ($dba && $argc > 3) {
36 $dba[$argv[3]] = $argv[4];
38 var_dump(array(
'Index' => $argv[3],
'Value' => $dba[$argv[3]]));
44 echo
"Not enough parameters\n";
48 catch (exception $err) {
This implements a DBA Array.