Please login to start chat

ICT Solutions 2019-01-21 13:31:16
Category : php tutorials

For each statement in php

<?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>';
}
}
?>

Comments:

No comment to show.

Available Services
Download Android Application