note 44921 added to language.variables

From: Date: Fri, 20 Aug 2004 07:21:32 +0000
Subject: note 44921 added to language.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-74975@lists.php.net to get a copy of this message
Just a little note about variable variable names. <?php $foo = 1; $$foo = "bar"; echo $1; // Errors as you might exect echo $$foo; // Echoes bar; ?> Might be of some use to someone. ---- Manual Page -- http://www.php.net/manual/en/language.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44921 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44921&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44921&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#74975) next »