Thursday, February 6, 2014

Foreach loop

<html>
<body>
<?php
$x=array("one","two","three");
foreach ($x as $value)
  {
  echo $value . "<br />";
  }
?>

</body>



OUTPUT:
one
two
three


No comments:

Post a Comment