Re: Arrays in forms {?!}

From: Date: Wed, 24 Apr 2002 05:32:15 +0000
Subject: Re: Arrays in forms {?!}
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94308@lists.php.net to get a copy of this message
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

« previous php.general (#94308) next »