note 109418 deleted from language.variables.superglobals by peehaa

From: Date: Sun, 28 Apr 2019 10:10:43 +0000
Subject: note 109418 deleted from language.variables.superglobals by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-210741@lists.php.net to get a copy of this message
Note Submitter: serpent at paradise dot net dot nz ---- You can go the other way as well i.e. <?php function test() { $GLOBALS['foo'] = "Example content"; } test(); echo "<p>$foo</p>"; ?> This doesn't appear to be affected by register_globals, I have it switched off.

« previous php.notes (#210741) next »