Can you use a variable within another variable?
$product$c[0] ??
Lets say $c[0] has 12 in it.
and
$product12 has the string "All the stuff I want"
when I
print "$product$c[0]";
All I get is: "12" not "All the stuff I want" .... Any ideas?
$product = All the Stuff I want; $c[0]=12 $newVar = $product . $c[0]; echo $newVar;
Try that
the . concatenates(sp?) {combines} two things into one
I gave that a try and unfortunately it still outputs just "12".
I think that it is trying to treat $Product as a seperate variable from $c[0].
I am trying to get it to treat it as if $c[0] = 12 and it will give me the value for what is in $Product12.