Combine value and name of two variables
Posted: Sat Jan 01, 2005 9:13 am
Hi Folks!
I've a problem I can't get rid of.
First get the Code:
Now I want to get the value of $amount<$no>, in this case the value of $amount2, thus "12345".
So, how can I make PHP understand that I want to combine the value and the name of the two variables and get the value of this new combined variable?
Thanks and regards,
Kedo
I've a problem I can't get rid of.
First get the Code:
Code: Select all
$amount2 = 12345;
$no = 2;So, how can I make PHP understand that I want to combine the value and the name of the two variables and get the value of this new combined variable?
Thanks and regards,
Kedo