On Wed, 24 Apr 2002, Liam MacKenzie wrote: > <Snippet of PHP> > while ( $element = each( $games ) ) > { > echo $element["value"]; > echo "<br>"; > } > </Snippet of PHP> > > I tried this too, it gave the same results as the above... > > if (is_array($games)) { > for ($z=0;$z<count($games);$z++) { > echo "$games[$z]<BR>"; > } > } > else { > echo "$games"; > }
foreach ($games as $key => $value) echo "<br>$key -- $value"; miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php