note 61476 deleted from language.variables.variable by danbrown

From: Date: Wed, 24 Jun 2009 16:53:34 +0000
Subject: note 61476 deleted from language.variables.variable by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157397@lists.php.net to get a copy of this message
Note Submitter: Mephist0 [ Alkon dot com dot ar ] ---- Wrong case : $a = "hello"; $b = "world"; ${$a}{$b} = "Wrong"; or ${$a} . "_" . {$b} = "Wrong"; Case : ${$a . "_" . $b} = "You got it"; print $hello_world; // Prints "You got it"; ${$a . $b} = "You got it again"; print $helloworld; // Prints "You got it again"; -------------------------- Simple casses but... very helpfull...

« previous php.notes (#157397) next »