Variable Variable?
Posted: Fri Oct 24, 2003 5:56 am
Hello this is my first post,
Is it possible to do a variable variable?
Say I have variables:
$a1 = 1.01;
$a2 = 1.02;
$a3 = 1.04;
$total = 0.00;
and I am passing a variable from a form (using get) called:
$esc //which just happens to be 2
is it possible to do something like this:
echo $a$esc
$total = $total + $a$esc
Thanks,
Alphaseinor
Is it possible to do a variable variable?
Say I have variables:
$a1 = 1.01;
$a2 = 1.02;
$a3 = 1.04;
$total = 0.00;
and I am passing a variable from a form (using get) called:
$esc //which just happens to be 2
is it possible to do something like this:
echo $a$esc
$total = $total + $a$esc
Thanks,
Alphaseinor