Revision: 48706
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 7, 2011 23:54 by tcam27
Initial Code
<?php
$i=0;
while(count($argv)>$i)
{
echo $argv[$i] . "\n";
$i++;
}
?>
Initial URL
Initial Description
If you want to use PHP as a command line program, this code can serve s a reference to read the arguments passed to the program.
Initial Title
Read Command Line Arguments
Initial Tags
php, command, line
Initial Language
PHP