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
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.