| px | top | add code | search | signup | login | help |
<html>
<head><title>Dice</title><head>
<body>
<?php
//Required code: This defines the dice array
$dice=array(
'<br> · <br> ',
'·<br><br> ·',
'·<br> · <br> ·',
'· ·<br><br>· ·',
'· ·<br> ·<br>· ·',
'···<br><br>···',
);
//End required code
?>
<!--FONT FOR CORRECT DISPLAYING-->
<font face='Lucida Console'>
<!--TABLE FOR MULTIPLE DICE-->
<table border='1'>
<tr>
<td><!--OUTPUT-->
<?=$dice[array_rand($dice)]?>
</td>
<td><!--OUTPUT-->
<?=$dice[array_rand($dice)]?>
<!--END EVERYTHING-->
</td>
</tr>
</table>
</font>
</body>
</html>
Comments or questions?
PX is running PHP 5.2.11
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.