I am doing command line script with php and trying to develop validate the set of commands to see if they were there, but i am not going anyware with the following code, i dont know why it alwasy goes to the help().. even if i have the argv options like
sh#php geninvoices.php --type=generate --w --bill_day=7
$commands=array('--type','--bill_day','--save');
if(!in_array($commands, $argv)){
print_r($argv);
help();
}
any help ?