note 116009 added to function.getopt
| From: | Missingdoc | Date: | Tue, 28 Oct 2014 21:47:35 +0000 |
| Subject: | note 116009 added to function.getopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200741@lists.php.net to get a copy of this message | ||
Just because i found that on Google instead of on official PHP documentation:
The syntax of the longopts array is the following
"option" for an opt without argument
"option=" for an opt with a required argument
"option==" for an opt that may have an argument or not
So for example
$longopts = array("no_argument", "required_argument=",
"optional_argument==");
----
Server IP: 72.52.91.14
Probable Submitter: 151.33.202.72
----
Manual Page -- http://php.net/manual/en/function.getopt.php
Edit -- https://master.php.net/note/edit/116009
Del: integrated -- https://master.php.net/note/delete/116009/integrated
Del: useless -- https://master.php.net/note/delete/116009/useless
Del: bad code -- https://master.php.net/note/delete/116009/bad+code
Del: spam -- https://master.php.net/note/delete/116009/spam
Del: non-english -- https://master.php.net/note/delete/116009/non-english
Del: in docs -- https://master.php.net/note/delete/116009/in+docs
Del: other reasons-- https://master.php.net/note/delete/116009
Reject -- https://master.php.net/note/reject/116009
Search -- https://master.php.net/manage/user-notes.php