PX : code

Simple dice by Hamish Milne
Download this code


<html>
<head><title>Dice</title><head>
<body>
<?php
//Required code: This defines the dice array
$dice=array(
'<br>&nbsp;·&nbsp;<br>&nbsp;',
'·<br><br>&nbsp;&nbsp;·',
'·<br>&nbsp;·&nbsp;<br>&nbsp;&nbsp;·',
'·&nbsp;·<br><br>·&nbsp;·',
'·&nbsp;·<br>&nbsp;·<br>·&nbsp;·',
'···<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.