note 4547 deleted from function.each by felipe
| From: | felipe@php.net | Date: | Sat, 29 Dec 2007 17:48:23 +0000 |
| Subject: | note 4547 deleted from function.each by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134139@lists.php.net to get a copy of this message | ||
Note Submitter: ridcully at magnet dot at
----
To output all entries of an array $a, do this
reset ($a);
while( $res=each($a) )
{
echo "$res[1]<br>";
};
If you need the keys too, it's in $res[0].