runkit7_function_rename
(PECL runkit7 >= Unknown)
runkit7_function_rename — Change a function's name
说明
runkit7_function_rename(string
$source_name
, string $target_name
): bool注意: 默认情况下,仅在用户空间可删除,重命名,或者修改函数。为了覆盖内部函数,必须启用 php.ini 中的
runkit.internal_override
设置。
参数
-
source_name
-
Current function name
-
target_name
-
New function name
返回值
成功时返回 true
, 或者在失败时返回 false
。
参见
- runkit7_function_add() - Add a new function, similar to create_function
- runkit7_function_copy() - Copy a function to a new function name
- runkit7_function_redefine() - Replace a function definition with a new implementation
- runkit7_function_remove() - Remove a function definition

User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/function.runkit7-function-rename.php