PHP syntax question: global $argv, $argc;
Posted
by Andrew
on Stack Overflow
See other posts from Stack Overflow
or by Andrew
Published on 2010-05-07T17:49:58Z
Indexed on
2010/05/07
17:58 UTC
Read the original article
Hit count: 190
php
So I have a PHPUnit test, and found this code within a function.
global $argv, $argc;
echo $argc;
print_r($argv);
I understand what these variables represent (arguments passed from the command line), but I've never seen this syntax before:global $argv, $argc;
What specifically is going on here?
© Stack Overflow or respective owner