| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
runkit_method_redefine(PECL runkit >= 0.7.0) runkit_method_redefine — Dynamically changes the code of the given method 説明
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
]] )
パラメータ
返り値
成功した場合に 変更履歴
例
例1 runkit_method_redefine() example
<?php 上の例の出力は以下となります。 Before: foo! After: bar! 参考
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「runkit_method_redefine - Dynamically changes the code of the given method」をGoogle検索
|