PHP - Manual: runkit_constant_redefine
2024-12-22
(PECL runkit >= 0.7.0)
runkit_constant_redefine — Redefine an already defined constant
constname
Constant to redefine. Either string indicating global constant, or classname::constname indicating class constant.
newvalue
New value to assign to constant.
成功时返回 TRUE
, 或者在失败时返回 FALSE
。
官方地址:https://www.php.net/manual/en/function.runkit-constant-redefine.php