Hi everyone,
How do I create a variable name made of other variable names and then query it?
i.e. what do i have to replace "${$car}" with in the code below to make it work?
$car = ford;
$ford = good;
if ( ${$car} == 'good' ) # This line doesn't work!
{
echo "it works!";
}
Thanks for your help!
Stu