<HTML>
<HEAD>
<TITLE>
</TITLE>
</HEAD>
<BODY>

<?php

// Multi-dimensional arrays 

$month = array('Jan' => 'January', 'Feb' => 'February', 'Mar' => 
'March', 'Apr' => 'April', 'May' => 'May', 'Jun' => 'June', 'Jul' => 
'July', 'Aug' => 'August', 'Sep' => 'September', 'Oct' => 'October', 
'Nov' => 'November', 'Dec' => 'December');

$day = array('S' => 'Sat', 'Su' => 'Sun', 'M' => 'Mon', 'T' =>
        'Tues', 'W' => 'Wed', 'R' => 'Thurs', 'F' => 'Fri');

$month_day = array('month' => $month, 'day' => $day);
 
//foreach ($month_day as $val)
//	echo "$val, "; // Prints Array , Array ,

// Accessing multi-dimensional arrays

foreach ($month_day as $val)
{
	foreach ($val as $v)
		echo "$v, ";
	echo "<P>";
}
echo "<P>";

// Accessing multi-dimensional arrays and using the indices
foreach ($month_day as $i => $val)
{
        foreach ($val as $j => $v)
                echo "month_day[$i][$j] = $v, ";
        echo "<P>";
}
echo "<BR>";


?>

</BODY>
</HTML>
