11
Developer's Corner / Re: [PHP] 'Dynamic variable name' ?
« on: February 05, 2011, 05:00 PM »
Thanks!
It's working now as so:
(Btw, any 'better' way to thank like reputation + etc. ?)
It's working now as so:
(Btw, any 'better' way to thank like reputation + etc. ?)
Code: PHP [Select]
- $i = 0;
- $i++;
- }
- for ($row = 0; $row <= 13; $row++)
- {
- for ($col = 0; $col <= 13; $col++)
- {
- if ($map[$row][$col] == 'X') {
- echo "<img src = 'img/wall/X.jpg'/>";}
- elseif ($map[$row][$col] == 'G') {
- echo "<img src = 'img/terrain/G.jpg'/>";}
- }
- }