mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
2a2b4ac208
commit
8be919b4c1
1 changed files with 5 additions and 5 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue