note 70717 added to function.getopt
| From: | yarco dot w at gmail dot com | Date: | Wed, 25 Oct 2006 02:08:23 +0000 |
| Subject: | note 70717 added to function.getopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119088@lists.php.net to get a copy of this message | ||
You cant use this function twice or more.
For example:
<?php
print_r(getopt('a:b:c:'));
print_r(getopt('d:e:f:'));
?>
You would be confused by the result.
[yarco@localhost ~]$ php test3.php -a love -b love -d love
Array
(
[a] => love
[b] => love
)
Array
(
[e] => love
[d] => love
)
----
Server IP: 64.71.164.2
Probable Submitter: 66.161.95.134
----
Manual Page -- http://www.php.net/manual/en/function.getopt.php
Edit -- https://master.php.net/note/edit/70717
Del: integrated -- https://master.php.net/note/delete/70717/integrated
Del: useless -- https://master.php.net/note/delete/70717/useless
Del: bad code -- https://master.php.net/note/delete/70717/bad+code
Del: spam -- https://master.php.net/note/delete/70717/spam
Del: non-english -- https://master.php.net/note/delete/70717/non-english
Del: in docs -- https://master.php.net/note/delete/70717/in+docs
Del: other reasons-- https://master.php.net/note/delete/70717
Reject -- https://master.php.net/note/reject/70717
Search -- https://master.php.net/manage/user-notes.php