correct the array_keys() implementation for PHP 3 example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64967 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
pgerzson 2001-12-14 01:00:27 +00:00
parent 2a2b4ac208
commit 8be919b4c1

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.134 $ -->
<!-- $Revision: 1.135 $ -->
<reference id="ref.array">
<title>Array Functions</title>
<titleabbrev>Arrays</titleabbrev>
@ -703,10 +703,10 @@ function array_keys ($arr, $term="") {
while (list($k,$v) = each($arr)) {
if ($term && $v != $term) {
continue;
$t[] = $k;
}
return $t;
}
}
$t[] = $k;
}
return $t;
}
]]>
</programlisting>