php man page for argv

Query: argv

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

ARGV(3) 								 1								   ARGV(3)

$argv - Array of arguments passed to script

	Contains an array of all the arguments passed to the script when running from the command line.

       Note

	       The first argument $argv[0] is always the name that was used to run the script.

       Note

	       This variable is not available when register_argc_argv is disabled.

       Example #1

	      $argv example

	      <?php
	      var_dump($argv);
	      ?>

	       When executing the example with: php script.php arg1 arg2 arg3

	      The above example will output something similar to:

	      array(4) {
		[0]=>
		string(10) "script.php"
		[1]=>
		string(4) "arg1"
		[2]=>
		string(4) "arg2"
		[3]=>
		string(4) "arg3"
	      }

       getopt(3).

PHP Documentation Group 														   ARGV(3)
Related Man Pages
jrunscript(1) - mojave
getopt(3) - php
phar.setstub(3) - php
stapvars(3stap) - hpux
stapvars(3stap) - v7
Similar Topics in the Unix Linux Community
how to include slashes &quot;/&quot; in @ARGV (Perl)
How to turn argv[1] into a string in C?
Matching options from ARGV in awk
How to store argv[x] in my program???
Match in perl not working with ARGV