note 110669 deleted from language.variables.superglobals by danbrown

From: Date: Thu, 06 Dec 2012 14:14:06 +0000
Subject: note 110669 deleted from language.variables.superglobals by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-192307@lists.php.net to get a copy of this message
Note Submitter: benjamin dot delespierre at gmail dot com ---- Just to illustrate the last note: <?php $type = "GET"; var_dump( ${"_$type"} ); // Works as we are in root scope function foo ($type) { return ${"_$type"}; } var_dump( foo($type) ); // doesn't works class foo { public static function bar ($type) { return ${"_$type"}; } } var_dump( foo::bar($type) ); // doesn't works either ?>

« previous php.notes (#192307) next »