note 19502 added to language.variables

From: Date: Fri, 01 Mar 2002 01:06:38 +0000
Subject: note 19502 added to language.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-27213@lists.php.net to get a copy of this message
Actually, you can use other chars (including spaces) in the variable name, if you are using variable variables. E.g., the following works for me (in PHP 4.1.1): $x="blah blah-blah"; $$x="value"; echo "var==" . $$x; echo "var==" . ${"blah blah-blah"}; Its output is: var==value var==value You can use it also in object variables (properties). -- http://www.php.net/manual/en/language.variables.php http://master.php.net/manage/user-notes.php?action=edit+19502 http://master.php.net/manage/user-notes.php?action=delete+19502 http://master.php.net/manage/user-notes.php?action=reject+19502

« previous php.notes (#27213) next »