note 123457 added to function.array-map
| From: | aarwang at gmail dot com | Date: | Thu, 20 Dec 2018 07:16:29 +0000 |
| Subject: | note 123457 added to function.array-map | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209926@lists.php.net to get a copy of this message | ||
please notice if a class not found, you may pass the class name with namespace
<?php
namespace Demo
class A{
public static method hi(){}
}
?>
you should call like this
<?php
array_map('Demo\A::hi', [])
?>
----
Server IP: 208.43.231.9
Probable Submitter: 47.52.79.159
----
Manual Page -- http://php.net/manual/en/function.array-map.php
Edit -- https://master.php.net/note/edit/123457
Del: integrated -- https://master.php.net/note/delete/123457/integrated
Del: useless -- https://master.php.net/note/delete/123457/useless
Del: bad code -- https://master.php.net/note/delete/123457/bad+code
Del: spam -- https://master.php.net/note/delete/123457/spam
Del: non-english -- https://master.php.net/note/delete/123457/non-english
Del: in docs -- https://master.php.net/note/delete/123457/in+docs
Del: other reasons-- https://master.php.net/note/delete/123457
Reject -- https://master.php.net/note/reject/123457
Search -- https://master.php.net/manage/user-notes.php