mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Fix example.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@9994 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
21b960a34d
commit
4004d75350
1 changed files with 1 additions and 1 deletions
|
@ -621,7 +621,7 @@ while (list($id, $name, $salary) = mysql_fetch_row($result)) {
|
|||
<programlisting>
|
||||
$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";
|
||||
}
|
||||
</programlisting></example>
|
||||
|
|
Loading…
Reference in a new issue