note 105655 deleted from reserved.variables.argv by danbrown
| From: | danbrown@php.net | Date: | Tue, 06 Sep 2011 15:43:09 +0000 |
| Subject: | note 105655 deleted from reserved.variables.argv by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-182980@lists.php.net to get a copy of this message | ||
Note Submitter: stuart at horuskol dot net
----
To extend on tufan's note - $argv and $argc are in the global scope, and are not superglobal.
To use these two variables in any function and/or class method, you will need to either pass them in
as arguments or use the global keyword to import them into the local scope.