Foreach Demo : For Each : Language Basics PHP Source Code


PHP Source Code » Language Basics » For Each »

 

Foreach Demo



<html>
<head>
<title>Foreach Demo</title>
</head>
<body>
<?

$list = array("A""B""C""D""E");

print "<ul>n";
foreach ($list as $value){
  print " <li>$value</li>n";
// end foreach
print "</ul>n";

?>
</body>
</html>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» For Each