note 78078 deleted from function.getopt by bjori
| From: | bjori@php.net | Date: | Thu, 27 Sep 2007 12:28:41 +0000 |
| Subject: | note 78078 deleted from function.getopt by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-130842@lists.php.net to get a copy of this message | ||
Note Submitter: bozo_z_clown at yahoo dot com
Reason: bad code
----
The code by koenbollen at gnospamail dot com works nicely but the addition of one line would make it
perfect. After setting $argv to the result of array_merge():
<?php
$argc = count($argv);
?>
Now $argc corresponds to the new $argv.