Looping through an Enumerated Array : foreach « Statement « PHP
- PHP
- Statement
- foreach
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