Date: 12/16/01
- Next message: derick <email protected>: "[PHP-DOC] Bug #14551 Updated: mistake on "array_keys""
- Previous message: jim winstead: "[PHP-DOC] cvs: phpdoc /en/functions strings.xml"
- Next in thread: derick <email protected>: "[PHP-DOC] Bug #14551 Updated: mistake on "array_keys""
- Reply: derick <email protected>: "[PHP-DOC] Bug #14551 Updated: mistake on "array_keys""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: luodonghua <email protected>
Operating system:
PHP version: 4.1.0
PHP Bug Type: Documentation problem
Bug description: mistake on "array_keys"
There is a mistake on the "Download documentation".(The download version,
like http://sg.php.net/distributions/manual/manual-en.chm
)
In the download documentation,there is a mistake in the "array_keys".
The origin on the documentation is:
Example 2. Implementation of array_keys() for PHP 3 users
function array_keys ($arr, $term="") {
$t = array();
while (list($k,$v) = each($arr)) {
if ($term && $v != $term) {
continue;
$t[] = $k;
}
return $t;
}
}
I think it should be
function array_keys ($arr, $term="") {
$t = array();
while (list($k,$v) = each($arr)) {
if ($term && $v != $term) {
continue;
}
$t[] = $k;
}
return $t;
}
Online documentation do not have such problem.
-- Edit bug report at: http://bugs.php.net/?id=14551&edit=1
- Next message: derick <email protected>: "[PHP-DOC] Bug #14551 Updated: mistake on "array_keys""
- Previous message: jim winstead: "[PHP-DOC] cvs: phpdoc /en/functions strings.xml"
- Next in thread: derick <email protected>: "[PHP-DOC] Bug #14551 Updated: mistake on "array_keys""
- Reply: derick <email protected>: "[PHP-DOC] Bug #14551 Updated: mistake on "array_keys""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

