note 86276 added to language.variables.superglobals
| From: | lskatz at gmail dot com | Date: | Fri, 10 Oct 2008 15:51:14 +0000 |
| Subject: | note 86276 added to language.variables.superglobals | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145245@lists.php.net to get a copy of this message | ||
Tibor:
It's not a good idea to use $_ENV unless you are specifying an environmental variable. This is
probably a better example that I found on another page in php.net
<?php
function test() {
$foo = "local variable";
echo '$foo in global scope: ' . $GLOBALS["foo"] . "\n";
echo '$foo in current scope: ' . $foo . "\n";
}
$foo = "Example content";
test();
?>
----
Server IP: 64.71.164.2
Probable Submitter: 130.207.66.123
----
Manual Page -- http://www.php.net/manual/en/language.variables.superglobals.php
Edit -- https://master.php.net/note/edit/86276
Del: integrated -- https://master.php.net/note/delete/86276/integrated
Del: useless -- https://master.php.net/note/delete/86276/useless
Del: bad code -- https://master.php.net/note/delete/86276/bad+code
Del: spam -- https://master.php.net/note/delete/86276/spam
Del: non-english -- https://master.php.net/note/delete/86276/non-english
Del: in docs -- https://master.php.net/note/delete/86276/in+docs
Del: other reasons-- https://master.php.net/note/delete/86276
Reject -- https://master.php.net/note/reject/86276
Search -- https://master.php.net/manage/user-notes.php