Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Looping through an Enumerated Array

Mon Oct 27, 2008 12:51 pm

Code:
<?php
  $emp_det
[]= "A";
  
$emp_det []= "B";
  
$emp_det []= "C";
  
$emp_det []= "D";
  
$emp_det []= "E";
  
$emp_det []= "F";
  foreach (
$emp_det as $temp) {
    echo
"$temp", "\n";
  }
?>




Post a reply
  Related Posts  to : Looping through an Enumerated Array
 Looping Through the GLOBALS Array     -  
 Elements of the enumerated array are numbers     -  
 @Enumerated and EnumType.STRING     -  
 Array difference for associate array     -  
 compare an array with another array?     -  
 array unshift     -  
 Add elements to the end of an array     -  
 Get array chunk     -  
 Array sort     -  
 Average of an array. Please help     -  

Topic Tags

PHP Loops, PHP Arrays