note 111352 deleted from language.variables.variable by googleguy

From: Date: Mon, 11 Feb 2013 05:10:29 +0000
Subject: note 111352 deleted from language.variables.variable by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193574@lists.php.net to get a copy of this message
Note Submitter: phpmanual at xtil dot net ---- PHP's implementation of variable variables has an interesting side effect that allows creation of a nameless variable. <?php $x = ''; $$x = 'abc'; ?> 'abc' is then stored in the variable that would be accessible through '$'... if that weren't a syntax error.

« previous php.notes (#193574) next »