infolink

Thursday 29 March 2012

foreach Loop Example in PHP

here is the example about foreach loop. It is the Loop type. Now check the basic syntax of foreach loop.

PHP foreach loop example:

<?php
$x=array("a","b","c");
foreach ($x as $value)
  {
  echo $value . "<br />";
  }
?>

No comments:

Post a Comment