(PECL runkit7 >= Unknown)
runkit7_function_add — Añade una nueva función, similar a create_function()
function_nameargument_listcodeclosurereturn_by_referencedoc_commentreturn_typeis_strictstrict_types=1
Ejemplo #1 Un ejemplo de runkit7_function_add()
<?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);
?>El ejemplo anterior mostrará:
The value of a is 1 The value of b is 2