register_compiler_function()

register_compiler_function() -- 动态注册一个编译器函数插件

描述

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

    传递编译器函数名,后跟实现它的PHP函数。

    PHP回调函数可以是:

    在大多数情况下可以忽略cacheable。其正确用法参见控制插件输出的可缓存性

    参见unregister_compiler_function()以及编译器函数插件一节。