Bug #17608 Updated: array_reduce
| From: | postings dot php dot net at hans-spath dot de | Date: | Wed, 05 Jun 2002 15:34:11 +0000 |
| Subject: | Bug #17608 Updated: array_reduce | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-9554@lists.php.net to get a copy of this message | ||
ID: 17608
Updated by: postings.php.net@hans-spath.de
Reported By: postings.php.net@hans-spath.de
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: All
PHP Version: 4.2.1
New Comment:
Ok, I've tested it and it worked as you descriebed. My fault.
Previous Comments:
------------------------------------------------------------------------
[2002-06-05 08:30:30] goba@php.net
Callbacks can be arrays array($obj, "methodname") as far as I can
remember, so it's right as mixed callback IMHO.
Goba
------------------------------------------------------------------------
[2002-06-05 08:10:59] postings.php.net@hans-spath.de
[ www.php.net/manual/en/function.array-reduce.php ]
>>>
mixed array_reduce ( array input, mixed callback [, int initial])
<<<
I think "mixed callback" should be changed to "string callback".
Furthermore, it would be a good idea to describe what parameters a
given callback function should have/handle.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17608&edit=1