note 4547 modified in function.each by irc-html

From: Date: Sat, 19 Jan 2002 21:52:00 +0000
Subject: note 4547 modified in function.each by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25493@lists.php.net to get a copy of this message
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]. --was-- To output all entries of an array $a, do this <PRE> reset ($a); while( $res=each($a) ) { echo "$res[1]<br>"; }; </pre> If you need the keys too, it's in $res[0]. http://www.php.net/manual/en/function.each.php

« previous php.notes (#25493) next »