note 112322 added to functions.anonymous
| From: | nbjayme at yahoo dot com | Date: | Sat, 01 Jun 2013 08:57:25 +0000 |
| Subject: | note 112322 added to functions.anonymous | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195021@lists.php.net to get a copy of this message | ||
as of PHP version 5.3
self::mycollection is an anonymous function array
self::mycollection["funcId"](); // error unknown
To fix:
$theFunc = & self::mycollection["funcId"];
$theFunc();
----
Server IP: 69.147.83.199
Probable Submitter: 112.210.25.226
----
Manual Page -- http://php.net/manual/en/functions.anonymous.php
Edit -- https://master.php.net/note/edit/112322
Del: integrated -- https://master.php.net/note/delete/112322/integrated
Del: useless -- https://master.php.net/note/delete/112322/useless
Del: bad code -- https://master.php.net/note/delete/112322/bad+code
Del: spam -- https://master.php.net/note/delete/112322/spam
Del: non-english -- https://master.php.net/note/delete/112322/non-english
Del: in docs -- https://master.php.net/note/delete/112322/in+docs
Del: other reasons-- https://master.php.net/note/delete/112322
Reject -- https://master.php.net/note/reject/112322
Search -- https://master.php.net/manage/user-notes.php