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 |
---|
array_map(3) - php |
getopt(3) - php |
call_user_func_array(3) - php |
output_add_rewrite_var(3) - php |
stapvars(3stap) - netbsd |
Similar Topics in the Unix Linux Community |
---|
Converting a hostname argv into an IP |
Matching options from ARGV in awk |
How to store argv[x] in my program??? |
Argv not found (script shell) |
Help using argc/argv in assignment |