note 126974 added to function.array-map
| From: | stocki dot r at gmail dot com | Date: | Thu, 07 Apr 2022 14:27:28 +0000 |
| Subject: | note 126974 added to function.array-map | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-218134@lists.php.net to get a copy of this message | ||
Don't forget to use the appropriate (fully qualified) class name, if necessary:
<?php
var_dump( array_map(['\Path\To\Class', 'methodName'], $arr) );
?>
See more example: https://www.php.net/manual/en/function.call-user-func-array.php#example-5101
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.135 (proxied: 2001:4c4e:1510:9f00:45af:99c2:ecff:f5b2)
----
Manual Page -- https://php.net/manual/en/function.array-map.php
Edit -- https://main.php.net/note/edit/126974
Del: integrated -- https://main.php.net/note/delete/126974/integrated
Del: useless -- https://main.php.net/note/delete/126974/useless
Del: bad code -- https://main.php.net/note/delete/126974/bad+code
Del: spam -- https://main.php.net/note/delete/126974/spam
Del: non-english -- https://main.php.net/note/delete/126974/non-english
Del: in docs -- https://main.php.net/note/delete/126974/in+docs
Del: other reasons-- https://main.php.net/note/delete/126974
Reject -- https://main.php.net/note/reject/126974
Search -- https://main.php.net/manage/user-notes.php