note 105655 added to reserved.variables.argv
| From: | stuart at horuskol dot net | Date: | Mon, 05 Sep 2011 06:02:24 +0000 |
| Subject: | note 105655 added to reserved.variables.argv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-182940@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 117.104.162.229
Probable Submitter: 203.122.234.143 (proxied: 203.122.234.143)
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.argv.php
Edit -- https://master.php.net/note/edit/105655
Del: integrated -- https://master.php.net/note/delete/105655/integrated
Del: useless -- https://master.php.net/note/delete/105655/useless
Del: bad code -- https://master.php.net/note/delete/105655/bad+code
Del: spam -- https://master.php.net/note/delete/105655/spam
Del: non-english -- https://master.php.net/note/delete/105655/non-english
Del: in docs -- https://master.php.net/note/delete/105655/in+docs
Del: other reasons-- https://master.php.net/note/delete/105655
Reject -- https://master.php.net/note/reject/105655
Search -- https://master.php.net/manage/user-notes.php