Console_Getopt::readPHPArgv

Console_Getopt::readPHPArgv -- read the predefined $argv array

Synopsis

require_once 'Console/Getopt.php';

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

Throws

Таблица 33-1. Возможные значения PEAR_Error

Error codeError messageReasonSolution
NULL "Console_Getopt: Could not read cmd args (register_argc_argv=Off?)" PHP does not provide the command-line arguments for the script. Check "register_argc_argv" in your php.ini

Заметка

Эта функция не должна вызываться статически.

Пример


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ