I beg to differ...
$stats = array("attack", "defence", "strength", "hitpoints", "range");
foreach ($stats as $index=>$value) {
echo " index ($index) = value ($value)<br>";
}
outputs:
index (0) = value (attack)
index (1) = value (defence)
index (2) = value (strength)
index (3) =...