php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #17608 array_reduce
Submitted: 2002-06-05 08:10 UTC Modified: 2002-06-05 11:34 UTC
From: postings dot php dot net at hans-spath dot de Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.2.1 OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: postings dot php dot net at hans-spath dot de
New email:
PHP Version: OS:

 

 [2002-06-05 08:10 UTC] postings dot php dot net at hans-spath dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-05 08:30 UTC] 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 11:34 UTC] postings dot php dot net at hans-spath dot de
Ok, I've tested it and it worked as you descriebed. My fault.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Aug 13 04:00:02 2025 UTC