Looping through an Enumerated Array : Array Loop « Data Structure « PHP
- PHP
- Data Structure
- Array Loop
Looping through an Enumerated Array
<?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";
}
?>
Related examples in the same category