$holding1="green"; $holding2="blue"; $holding3="yellow"; for ($count = 3; $count >= 1; $count--) { $tempvar=${"holding" . $count}; print "$tempvar<br>"; #this prints holding1 instead of green }
In reply to Re: unsure how to use variable
by dkroft
in thread unsure how to use variable
by dgoroski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |