Using foreach() with numeric arrays : foreach « Statement « PHP
- PHP
- Statement
- foreach
Using foreach() with numeric arrays
<?
$dinner = array('A',
'B',
'C');
foreach ($dinner as $dish) {
print "You can eat: $dish\n";
}
?>
Related examples in the same category