note 53041 deleted from control-structures.foreach by felipe
| From: | felipe@php.net | Date: | Sun, 09 Dec 2007 16:04:19 +0000 |
| Subject: | note 53041 deleted from control-structures.foreach by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133045@lists.php.net to get a copy of this message | ||
Note Submitter: wrm at metrushadows dot com
----
Another example for printing out arrays.
<?php
$array = array(
1 => 'milk',
2 => 'eggs',
3 => 'bread'
);
foreach ($array as $array => $value) {
echo "$value<br />";
}
?>