Dup Ver Goto 📝

Command Line Args in PHP

PT2/lang/php/cli php cli does not exist
To
11 lines, 27 words, 156 chars Page 'Args' does not exist.

Command Line Args in PHP

<?php
$args = $argv;
$me = array_shift($args); # $argv[0] is script name
foreach($argv as $arg) {
  echo "$arg\n";
}