note 126335 added to function.getopt
| From: | edg at Greenberg dot org | Date: | Thu, 12 Aug 2021 12:22:02 +0000 |
| Subject: | note 126335 added to function.getopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216777@lists.php.net to get a copy of this message | ||
> This function will return an array of option / argument pairs, or false on failure.
I note that on my PHP 7.4 installation, getopt returns an empty array for no options specified, not
FALSE as the doc states. Although "failure" is rather non-specific. Maybe that
doesn't include the condition of no options.
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 69.204.130.121)
----
Manual Page -- https://php.net/manual/en/function.getopt.php
Edit -- https://main.php.net/note/edit/126335
Del: integrated -- https://main.php.net/note/delete/126335/integrated
Del: useless -- https://main.php.net/note/delete/126335/useless
Del: bad code -- https://main.php.net/note/delete/126335/bad+code
Del: spam -- https://main.php.net/note/delete/126335/spam
Del: non-english -- https://main.php.net/note/delete/126335/non-english
Del: in docs -- https://main.php.net/note/delete/126335/in+docs
Del: other reasons-- https://main.php.net/note/delete/126335
Reject -- https://main.php.net/note/reject/126335
Search -- https://main.php.net/manage/user-notes.php