$foo = "BAR";
$varname = "new$foo";
$$varname = "some string";
Martin Allan Jensen wrote:
Hi folks,
I probably need a little help the next couble of days, but well here is the first question.
How can i assign a variable with the value of another variable ??
Example:
$foo = "BAR";
$newBAR = "some string";
The BAR is supposed to be taken from the value of $foo.
THANKS A LOT!!!
Regards,
Martin Allan Jensen
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php