PHP » GoLang |
login |
register |
about
|
GoLang runkit_method_add
request it (382)
GoLang replacement for PHP's runkit_method_add
[edit | history]
runkit_method_add(PECL runkit >= 0.7.0) runkit_method_add — Dynamically 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
|
more
Recently updated
more
Most requested
more
Last requests
|