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 |
---|
phar.setstub(3) - php |
call_user_func_array(3) - php |
output_add_rewrite_var(3) - php |
stapvars(3stap) - hpux |
stapvars(3stap) - v7 |
Similar Topics in the Unix Linux Community |
---|
if #argv = (this OR that) then... |
How do I copy or rewind *argv[] |
How to store argv[x] in my program??? |
O argv, argv, wherefore art thou argv? |
Match in perl not working with ARGV |