require_once 'Console/Getopt.php';
array readPHPArgv ()
array readPHPArgv
Reads the $argv PHP array across different PHP configurations. Will take care of the register_globals and register_argc_argv ini directives.
array - array containing the options and parameters or PEAR_Error
Table 32-1. Possible PEAR_Error values
This function can not be called statically.
Example 32-1. Using readPHPArgv()
$con = new Console_Getopt; $args = $con->readPHPArgv(); array_shift($args); $options = $con->getopt2($args, $shortopt);