Re: While on array?

From: Date: Sun, 20 Jan 2002 21:24:05 +0000
Subject: Re: While on array?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81417@lists.php.net to get a copy of this message
> ie - i have: > while($myrow=mysql_fetch_array($result)) { etc... > > But i want the loop to run with an array i created earlier ($anotherarray = > [key1] => value1, [key2] => value2). > use foreach($anotherarray as $key => $value) { ..... A Nawroth

« previous php.general (#81417) next »