UOPZ_REDEFINE(3) 1 UOPZ_REDEFINE(3)
uopz_redefine - Redefine a constant
SYNOPSIS
void uopz_redefine (string $class, string $constant, mixed $value)
DESCRIPTION
void uopz_redefine (string $constant, mixed $value)
Redefines the given $constant as $value
PARAMETERS
o $class
- The name of the class containing the constant
o $constant
- The name of the constant
o $value
- The new value for the constant, must be a valid type for a constant variable
RETURN VALUES
EXAMPLES
Example #1
uopz_redefine(3) example
<?php
define("MY", 100);
uopz_redefine("MY", 1000);
echo MY;
?>
The above example will output something similar to:
1000
PHP Documentation Group UOPZ_REDEFINE(3)