I would like to output the age of the person rather than the Date of birth in these arrays.
$players = array (
array("Name 1","Nickname 1","07-15-1986"),
array("Name 2","Nickname 2","07-27-1985")
);
$totalPlayers = array_sum(array_map("count", $players))/3;
for ($row = 0; $row < $totalPlayers; $row++) {
echo "<ul>";
for ($col = 0; $col < 3; $col++) {
echo "<li>".$players[$row][$col]."</li>";
}
echo "</ul>";
}
Current output
Name 1
Nickname 1
07-15-1986
Name 2
Nickname 2
07-27-1985