PHP Question...
PHP Question...
- Started
- Last post
- 4 Responses
- must_dash
THis is probably dead easy but am drawing a blank...
if I have a variable called $size44
and I'm going through a loop... how do I display that value... I was thinking it was
eval('$size' . $counter);
where $counter is 44;
but am guessing this isn't how to do it?
any ideas... cheers :)
- acescence0
echo ${"size".$counter};
- must_dash0
hmm... can't get that too work
- acescence0
those are curly braces, not parentheses
- must_dash0
ah sorry... had an error elsewhere from me trying to get it to work... thank you... I owe you a beer! or equivalent!