note 120279 deleted from function.runkit-function-add by cmb
| From: | cmb@php.net | Date: | Wed, 07 Dec 2016 15:37:41 +0000 |
| Subject: | note 120279 deleted from function.runkit-function-add by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208259@lists.php.net to get a copy of this message | ||
Note Submitter: rpbiwer
----
[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
?>