Search This Blog

foreach() in php

<?php

$food=array("APPLE","PINEAPPLE","POMEGRANATE","TOMATO");

foreach($food as $item){
 
  echo $item.'<br>';

}

?>



output :

APPLE
PINEAPPLE
POMEGRANATE
TOMATO

Share Links

Related Posts Plugin for WordPress, Blogger...