This is what I have but im not sure if its right.
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title>Dice Roll</title></head>
<body>
<?php
$rolls = 26;
$results = array(1 => array(), array(), array(), array(), array(), array());
$total = 0;
for ($i=1; $i <= $rolls; ++$i) {
$val = rand(1,6);
$results[$val][] = $i;
$total += $val;
}
echo "<table border='1'>";
echo "<tr><th>Roll Number</th><th>Throws</th><th>Roll Value</th></tr>";
foreach ($results as $val => $throws) {
echo "<tr><th>$val</th><td>" . join(', ', $throws) ."</td><td>" . count($throws) . "</td></tr>";
}
echo "</table><br />";
printf ('Total : %d, Average: %4.2f', $total, $total/$rolls);
?>
</body>
</html>