Bug #1878 Updated: array does not work

From: Date: Mon, 26 Jul 1999 19:38:07 +0000
Subject: Bug #1878 Updated: array does not work
Groups: php.dev 
Request: Send a blank email to php-dev+get-9189@lists.php.net to get a copy of this message
ID: 1878 Updated by: rasmus Reported By: frank@freestyling.de Status: Closed Bug Type: Documentation problem Assigned To: Comments: The key of the first array element will be 0 and thus your condition for looping will be false. Use: while(list($key,$value)=each($fruits)) { echo "fruits[$key] = ".$value."\n"; } Full Bug description available at: http://bugs.php.net/?id=1878

« previous php.dev (#9189) next »