update : 2015.11.03
php.shukuma.com

검색:
 
 
Redefine a constant

uopz_redefine

(PECL uopz >= 1.0.0)

uopz_redefineRedefine a constant

설명

void uopz_redefine ( string $class , string $constant , mixed $value )
void uopz_redefine ( string $constant , mixed $value )

Redefines the given constant as value

인수

class

The name of the class containing the constant

constant

The name of the constant

value

The new value for the constant, must be a valid type for a constant variable

반환값

예제

Example #1 uopz_redefine() example

<?php
define
("MY"100);

uopz_redefine("MY"1000);

echo 
MY;
?>

위 예제의 출력 예시:

1000