note 79818 deleted from features.commandline by felipe
| From: | felipe@php.net | Date: | Sun, 16 Dec 2007 00:51:26 +0000 |
| Subject: | note 79818 deleted from features.commandline by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133606@lists.php.net to get a copy of this message | ||
Note Submitter: navigator at moldova dot cc
Reason: 1
----
just another easy arguments like "register_globals" option:
<?php
foreach ($argv as $arg)
{
if (preg_match("/-*([a-zA-Z0-9]+)=[\"']*(.*)[\"']*/", $arg, $m) ===
1)
{
$$m[1] = $m[2];
}
}
?>