From 4004d753506d6a0419479890d4ffa7ee7810f62b Mon Sep 17 00:00:00 2001 From: James Gingerich Date: Wed, 23 Jun 1999 21:56:02 +0000 Subject: [PATCH] Fix example. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@9994 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/array.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/array.sgml b/functions/array.sgml index 55164ebf73..48f33bcf25 100644 --- a/functions/array.sgml +++ b/functions/array.sgml @@ -621,7 +621,7 @@ while (list($id, $name, $salary) = mysql_fetch_row($result)) { $fruits = array("lemon","orange","banana","apple"); rsort($fruits); - for(reset($fruits); ($key,$value) = each($fruits); ) { + for(reset($fruits); list($key,$value) = each($fruits); ) { echo "fruits[$key] = ".$value."\n"; }