$argv

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

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

<?php

print_r($argv);

?>

Documentation

See also https://code.tutsplus.com/get-command-line-arguments-with-php-argv-or-getopt–cms-39201t

Related : $argc, PHP Variables