note 72407 added to function.getopt
| From: | php-general at lists dot php dot net | Date: | Wed, 17 Jan 2007 19:59:56 +0000 |
| Subject: | note 72407 added to function.getopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121846@lists.php.net to get a copy of this message | ||
About getopt(String):
Parses the command-line arguments into an associative array, using the function's String
parameter to specify arguments and options, thus:
* arguments are specified as any letter followed by a colon, e.g. "h:".
* arguments are returned as "h" => "value".
* options are specified as any letter not followed by a colon, e.g. "r".
* options are returned as "r" => (boolean) false.
Also note that:
1) Options or arguments not passed in the command-line parameters are not set in the returned
associative array.
2) Options or arguments present in the command-line arguments multiple times are returned as an
enumerated array within the returned associative array.
----
Server IP: 69.147.83.197
Probable Submitter: 209.208.68.2 (proxied: 192.168.1.35)
----
Manual Page -- http://www.php.net/manual/en/function.getopt.php
Edit -- https://master.php.net/note/edit/72407
Del: integrated -- https://master.php.net/note/delete/72407/integrated
Del: useless -- https://master.php.net/note/delete/72407/useless
Del: bad code -- https://master.php.net/note/delete/72407/bad+code
Del: spam -- https://master.php.net/note/delete/72407/spam
Del: non-english -- https://master.php.net/note/delete/72407/non-english
Del: in docs -- https://master.php.net/note/delete/72407/in+docs
Del: other reasons-- https://master.php.net/note/delete/72407
Reject -- https://master.php.net/note/reject/72407
Search -- https://master.php.net/manage/user-notes.php