Introduction - Options (Previous) (Next) Console_Getopt::readPHPArgv

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Console_Getopt::getopt

Console_Getopt::getopt -- fetch the command-line options

Описание

Parses the command-line options and returns them.

Параметр

  • array $args - an array of command-line arguments

  • string $shortoptions - specifies the list of allowed short options. See the "Options" section for more information.

  • array $longoptions - specifies the list of allowed long options. Default is NULL. See the "Options" section for more information.

Возвращаемое значение

array - two-element array containing the list of parsed options and the non-option arguments or a PEAR_Error.

Заметка

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

Introduction - Options (Previous) (Next) Console_Getopt::readPHPArgv

Download Documentation Last updated: Mon, 02 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.