note 110664 deleted from language.variables.superglobals by aharvey

From: Date: Wed, 21 Nov 2012 01:37:11 +0000
Subject: note 110664 deleted from language.variables.superglobals by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-192048@lists.php.net to get a copy of this message
Note Submitter: jon at xuu dot cc ---- I found that adding things to the $GLOBALS does not make them "SUPERGLOBAL" for example: $GLOBALS['foo'] = 'bar'; class Apple { function get() { return $foo; } } $fruit = new Apple(); var_dump( $fruit->get() ); Results in: NULL

« previous php.notes (#192048) next »