Is there a way to have a 'variable range'?
Such as if I was making a level system, it would be like this:
$level1="Level 1 desc is here";
$level2="Level 2 desc is here";
$level3-5 = "Level 3, 4, and 5 desc is here";
?
It's a whole lot easier than typing out EVERY SINGLE POSSIBLE LEVEL. Just wonderin'
Thanks!
-PG
Also, is there a way to do something along the lines of this?:
echo $level$newLevel
? For example, if $newLevel was 1 and $level would reference the $level1, $level2, $level3... variables, with $newLevel adding the number in?
Last edited by Physicsguy; 07-26-2010 at 08:51 PM..
|