note 45171 added to language.variables.variable

From: Date: Fri, 27 Aug 2004 20:56:23 +0000
Subject: note 45171 added to language.variables.variable
Groups: php.notes 
Request: Send a blank email to php-notes+get-75463@lists.php.net to get a copy of this message
If you need to have a ${$_SESSION['var_name']} this won't work as Variables-variables doesn't work on superglobal vars. You can always do something like: $var_name='$_SESSION['var_in_session']'; eval("\$variables=\$var_name"); then you will have it :-D Enjoy. ---- Manual Page -- http://www.php.net/manual/en/language.variables.variable.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45171 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45171&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45171&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#75463) next »