$argv

$argv is a PHP variable that contains an array of the arguments passed to the PHP script, in the command line. $argv is not defined when PHP is run in a webserver.

$argv is not a superglobal: it has to be imported in a non-global scope with the global keyword.

<?php

print_r($argv);

?>

Documentation

See also Get Command-Line Arguments With PHP $argv or getopt().

Related : $argc, PHP Variables, global Scope, $GLOBALS, Command Line Interface (CLI), register_argc_argv