note 120279 modified in function.runkit-function-add by cmb
| From: | cmb@php.net | Date: | Mon, 05 Dec 2016 20:27:18 +0000 |
| Subject: | note 120279 modified in function.runkit-function-add by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208231@lists.php.net to get a copy of this message | ||
[Editor's note: that is supported as of runkit-1.0.4]
It's also possible to pass a closure to
runkit_function_add:
<?php
runkit_function_add("func", function ($s) {
error_log("hello $s");
});
func("there"); // hello there
?>
--was--
It's also possible to pass a closure to runkit_function_add:
<?php
runkit_function_add("func", function ($s) {
error_log("hello $s");
});
func("there"); // hello there
?>
http://php.net/manual/en/function.runkit-function-add.php