1 / 3
amogtech
2 / 3
mhk
3 / 3
ccg


 <?php

 $food = array('Healthy'=>array('Salad', 'Milk', 'Coconet', 'Ground_nut'),

              'Unhealthy'=>array('Alcohol', 'Beer', 'Ice_cream'));

 

foreach($food as $element => $inner_element){

  echo '</br><strong>'.$element.'</strong></br>';

 

foreach($inner_element as $item){

  echo $item.'</br>';

}

}

?>


Share On: