register_compiler_function()

register_compiler_function() -- コンパイラ関数プラグインを動的に登録します。

説明

bool register_compiler_function ( string name, mixed impl, bool cacheable)

コンパイラ関数 の名前と、 それを実装する PHP のユーザー定義関数名を渡します。

PHP 関数のコールバック function は、次のいずれかとなります。

cacheable はほとんどの場合に省略可能です。 これらの正しい使用法についての詳細は、 キャッシュ可能なプラグインの出力の制御 を参照して下さい。

unregister_compiler_function() および コンパイラ関数プラグイン も参照してください。