uopz_undefine
uopz_undefine
Undefine a constant
bool **uopz_undefine** string $constant
bool **uopz_undefine** string $class string $constant
Removes the constant at runtime
class
The name of the class containing
constant
constantThe name of an existing constant
return.success
Voorbeeld: example
<?php
define("MY", true);
uopz_undefine("MY");
var_dump(defined("MY"));
?>
bool(false)