Source of basicMultiArray.php
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Distance calculator</title>
</head>
<body>
<?
$city = array (
"Indianapolis",
"New York",
"Tokyo",
"London"
);
$distance = array (
array (0, 648, 6476, 4000),
array (648, 0, 6760, 3470),
array (6476, 6760, 0, 5956),
array (4000, 3470, 5956, 0)
);
$result = $distance[$cityA][$cityB];
print "<h3>The distance between ";
print "$city[$cityA] and $city[$cityB]";
print " is $result miles.</h3>";
?>
</body>
</html>