Does this look like a good way to retrieve command line variables and assign
them in a script, or am I reinventing something that is already in place???

for ($i = 1; $i < $argc; $i = $i + 2) {
    $var = str_replace("-", "", $argv[$i]);
    $$var = $argv[$i+1];
}

Thanks!
-Shawn

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to