(PECL runkit7 >= Unknown)
runkit7_function_add — Add a new function, similar to create_function()
function_nameargument_listcodeclosurereturn_by_referencedoc_commentreturn_typeis_strictstrict_types=1
示例 #1 A runkit7_function_add() example
<?php
runkit7_function_add('testme','$a,$b','echo "The value of a is $a\n"; echo "The value of b is $b\n";');
testme(1,2);
?>以上示例会输出:
The value of a is 1 The value of b is 2