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 |
---|
getopt(3) - php |
get_included_files(3) - php |
output_add_rewrite_var(3) - php |
var_dump(3) - php |
stapvars(3stap) - hpux |
Similar Topics in the Unix Linux Community |
---|
ARGV help in C |
How to turn argv[1] into a string in C? |
How do I copy or rewind *argv[] |
How to store argv[x] in my program??? |
Argv not found (script shell) |