$students = array ('Elena', 'Nia', 'Zura');
foreach ($students as $student) {
echo $student . "\n";
}
/*Outputs:
Elena
Nia
Zura*/
$age = array ("Elena" => "39", "Nia" => "11", "Zura" => "41");
foreach ($age as $x => $val) {
echo "$x = $val" . "\n";
}
/*Outputs:
Elena = 39
Nia = 11
Zura = 41*/