(PECL runkit7 >= Unknown)
runkit7_function_add — Ajoute une nouvelle fonction, similaire à create_function()
function_nameargument_listcodeclosurereturn_by_referencedoc_commentreturn_typeis_strictstrict_types=1
Exemple #1 Un exemple 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);
?>L'exemple ci-dessus va afficher :
The value of a is 1 The value of b is 2