codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php $x = 0; $y = 0; $x_max = 10; $y_max = 12; $texture = array("grass","sand","water","ice","lava"); ?> <html> <table name = "world" border = 1> <?php while($y < $y_max) { echo("<tr>"); while($x < $x_max) { echo("<td>"); $field_texture[$x][$y] = $texture[rand(0,4)]; echo($field_texture[$x][$y]); echo("</td>"); $x++; } $x = 0; echo("</tr>"); $y++; echo($field_texture[1][5]); } ?>
Private
[
?
]
Run code
Submit