uopz_undefine
(PECL uopz 1, PECL uopz 2, PECL uopz 5, PECL uopz 6, PECL uopz 7)
uopz_undefine — Undefine a constant
Description
Removes the constant at runtime
Parameters
classThe name of the class containing
constantconstantThe name of an existing constant
Examples
Example #1 uopz_undefine() example
<?php
define("MY", true);
uopz_undefine("MY");
var_dump(defined("MY"));
?>The above example will output:
bool(false)
↑ and ↓ to navigate • Enter to select • Esc to close • / to open