|
runkit_method_addDynamically adds a new method to a given class Description
bool runkit_method_add
( string
$classname
, string $methodname
, string $args
, string $code
[, int $flags = RUNKIT_ACC_PUBLIC
[, string $doc_comment = NULL
]] )
bool runkit_method_add
( string
$classname
, string $methodname
, Closure $closure
[, int $flags = RUNKIT_ACC_PUBLIC
[, string $doc_comment = NULL
]] )Parameters
Return Values
Returns Changelog
Examples
Example #1 runkit_method_add example
<?php The above example will output: 16 See Also
|