note 23762 deleted from reserved.variables by dams

From: Date: Sat, 27 Jul 2002 16:44:45 +0000
Subject: note 23762 deleted from reserved.variables by dams
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-33684@lists.php.net to get a copy of this message
Hi, why dont the predefined arrays ($_SERVER etc..) work when trying to be accessed via a variable variable? E.g.: this works: print $_SERVER[SERVER_NAME]; but this doesnt work: $test = '_SERVER[SERVER_NAME]'; print $$test; Why? Thanks a lot, Hinnerk Bruegmann

« previous php.notes (#33684) next »