note 86276 deleted from language.variables.superglobals by peehaa

From: Date: Sun, 28 Apr 2019 10:10:58 +0000
Subject: note 86276 deleted from language.variables.superglobals by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-210742@lists.php.net to get a copy of this message
Note Submitter: lskatz at gmail dot com ---- 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(); ?>

« previous php.notes (#210742) next »