Home > PHP > Function > runkit > runkit_constant_redefine()

runkit_constant_redefine()

runkit_constant_redefine - Redefine an already defined constant

Syntax

bool runkit_constant_redefine (string $constname, mixed $newvalue)

Arguments

  • constname - Constant to redefine. Either string indicating global constant, or classname::constnameindicating class constant.
  • newvalue - New value to assign to constant.

Description

Version

PHP PECL runkit >= 0.7.0

Return value

Returns TRUE on success or FALSE on failure.