key() with array from mysql_fetch_array

From: Date: Sun, 10 Dec 2000 02:42:18 +0000
Subject: key() with array from mysql_fetch_array
Groups: php.general 
Request: Send a blank email to php-general+get-29530@lists.php.net to get a copy of this message
Hi all, Can someone please explain why code along the lines of the following fails on an array returned from mysql_fetch_array ? while( ( key($myArray) ) != $someString ) next( $myArray ); It works if I use a number but when I use a string ( $someString ) it does not enter the loop .... It also works on an array I create myself and index by strings ... Thanks, Christian

« previous php.general (#29530) next »