$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 = "
er 2002 10:30 AM
// To: [EMAIL PROTECTED]
// Subject: [PHP-DB] Assign a variable with another variables value
//
//
// 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 va
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!!!
Reg