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

How to Create a Two Dimensional Associative Array in PHP
How to Create a Two Dimensional Associative Array in PHP

Further Reading

Examples of Array Functions in PHP

Basic Programs in PHP

Registration Form Using PDO in PHP