UOPZ_UNDEFINE(3) 1 UOPZ_UNDEFINE(3)
uopz_undefine - Undefine a constant
SYNOPSIS
void uopz_undefine (string $class, string $constant)
DESCRIPTION
void uopz_undefine (string $constant)
Removes the constant at runtime
PARAMETERS
o $class
- The name of the class containing $constant
o $constant
- The name of an existing constant
RETURN VALUES
EXAMPLES
Example #1
uopz_undefine(3) example
<?php
define("MY", true);
uopz_undefine("MY");
var_dump(defined("MY"));
?>
The above example will output something similar to:
bool(false)
PHP Documentation Group UOPZ_UNDEFINE(3)