note 49472 rejected from language.variables.variable by cece

From: Date: Sat, 29 Jan 2005 10:26:33 +0000
Subject: note 49472 rejected from language.variables.variable by cece
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-84149@lists.php.net to get a copy of this message
Note Submitter: ---- had an error in my script below. with $$a i meant $$val of course. so the example should look like this: <?php // consider file has been called with ?var=val function test() { $val = '_GET'; var_dump($$val); echo "\n"; var_dump(${$_GET['var']}); } test(); ?> will output NULL string(4) "_GET"

« previous php.notes (#84149) next »