Re: key() with array from mysql_fetch_array
| From: | Richard Lynch | Date: | Tue, 12 Dec 2000 05:23:05 +0000 |
| Subject: | Re: key() with array from mysql_fetch_array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29818@lists.php.net to get a copy of this message | ||
Do this:
echo "key is ", key($myArray), "<BR>\n";
echo "someString is ", $someString, "<BR>\n";
> while( ( key($myArray) ) != $someString )
{
> next( $myArray );
echo "key is ", key($myArray), "<BR>\n";
echo "someString is ", $someString, "<BR>\n";
}
PS *WHY* are you doing this?... It looks pretty weird to me...