Creating a variable from a value

From: Date: Fri, 29 Dec 2000 02:54:07 +0000
Subject: Creating a variable from a value
Groups: php.general 
Request: Send a blank email to php-general+get-32189@lists.php.net to get a copy of this message
This may seem strange... hopefully I can explain the problem well: I have a variable named $myVar $myVar contains a string that may look like anything, for example, we'll use "TEST" I want to take the string value of $myVar and make a variable out of it's value. A code example would be this: <? unset($TEST); $myVar = "TEST"; createNewVariable($myVar); if (isset($TEST)) { // success else // error ?> Any idea on how i would create this? Many thanks in advance, Rob

« previous php.general (#32189) next »