note 62438 added to function.array-map
| From: | benjaminhill | Date: | Tue, 28 Feb 2006 18:39:17 +0000 |
| Subject: | note 62438 added to function.array-map | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-104571@lists.php.net to get a copy of this message | ||
It is unclear from the documentation if this works with PHP5 object constructors. For example,
there isn't currently a way to directly call
$objects = array_map("MyObject::__construct", $seedArray);
or
$objects = array_map("new MyObject", $seedArray);
without wrapping the constructor in a callback function first.
----
Server IP: 64.71.164.2
Probable Submitter: 24.7.64.69
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.array-map.php
Edit -- http://master.php.net/note/edit/62438
Del: integrated -- http://master.php.net/note/delete/62438/integrated
Del: useless -- http://master.php.net/note/delete/62438/useless
Del: bad code -- http://master.php.net/note/delete/62438/bad+code
Del: spam -- http://master.php.net/note/delete/62438/spam
Del: non-english -- http://master.php.net/note/delete/62438/non-english
Del: in docs -- http://master.php.net/note/delete/62438/in+docs
Del: other reasons-- http://master.php.net/note/delete/62438
Reject -- http://master.php.net/note/reject/62438
Search -- http://master.php.net/manage/user-notes.php