The following code shows how to Create a Two Dimensional Associative Array in PHP.
<?php
$arr=array('one'=>array('a'=>56, 'b'=>100, 'c'=>50, 'd'=>32, 'k'=>8.9),
'two'=>array('p'=>'abc', 'q'=>'xyz', 'r'=>'efg'));
$c=0;
foreach($arr as $p)
{
$c++;
echo 'Row '.$c.': ';
foreach($p as $m)
{
echo $m.' ';
}
echo '<br>';
}
?>
Output