PHP » GoLang |
login |
register |
about
|
GoLang runkit_method_redefine
request it (397)
GoLang replacement for PHP's runkit_method_redefine
[edit | history]
runkit_method_redefine(PECL runkit >= 0.7.0) runkit_method_redefine — Dynamically changes the code of the given method Description
bool runkit_method_redefine
( string
$classname
, string $methodname
, string $args
, string $code
[, int $flags = RUNKIT_ACC_PUBLIC
[, string $doc_comment = NULL
]] )
bool runkit_method_redefine
( 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_redefine() example
<?php The above example will output: Before: foo! After: bar! See Also
|
more
Recently updated
more
Most requested
more
Last requests
|