Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

foreach in php

<?php
// Declare an array 
$arr = array("green", "blue", "pink", "white");  
  
// Loop through the array elements 
foreach ($arr as $element) { 
    echo "$element "; 
} 
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #foreach #php
ADD COMMENT
Topic
Name
1+8 =