note 55934 deleted from features.commandline by danbrown

From: Date: Tue, 25 Nov 2008 15:48:02 +0000
Subject: note 55934 deleted from features.commandline by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-146919@lists.php.net to get a copy of this message
Note Submitter: Lasse Johansson ---- Hi, parsing the commandline (argv) can be very simple in PHP. If you use keyword parms like: script.php parm1=value parm3=value All you have to do in script.php is: for ($i=1; $i < $argc; $i++) {parse_str($argv[$i]);} $startup=compact('parm1', 'parm2', 'parm3');

« previous php.notes (#146919) next »