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 |
---|
stapvars(3stap) - centos |
apc_delete_file(3) - php |
get_included_files(3) - php |
var_dump(3) - php |
stapvars(3stap) - hpux |
Similar Topics in the Unix Linux Community |
---|
Converting a hostname argv into an IP |
how to include slashes "/" in @ARGV (Perl) |
help for argv argc |
if #argv = (this OR that) then... |
Match in perl not working with ARGV |