|
runkit_function_addAdd a new function, similar to create_function Beschreibung
bool runkit_function_add
( string
$funcname
, string $arglist
, string $code
[, bool $return_by_reference = NULL
[, string $doc_comment = NULL
]] )
bool runkit_function_add
( string
$funcname
, Closure $closure
[, string $doc_comment = NULL
] )Parameter-Liste
Rückgabewerte
Gibt bei Erfolg Changelog
Beispiele
Beispiel #1 A runkit_function_add example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: The value of a is 1 The value of b is 2 Siehe auch
|