Passing command-line arguments into PHP
Programming and Web Development
PHP
Say you have a PHP script and you want to pass command-line arguments into the script, e.g. calling the script like this:php script.php datafile.txt 10 100PHP stores all command-line arguments in an array:$argv 0 => “script.php”$argv 1 => “datafile.txt”$...