uopz_undefine
(PECL uopz 1, PECL uopz 2, PECL uopz 5, PECL uopz 6, PECL uopz 7)
uopz_undefine — Undefine a constant
설명
uopz_undefine(string $constant
): bool
uopz_undefine(string $class
, string $constant
): bool
런타임에 상수를 제거합니다.
매개변수
class
- 상수를 포함하는 클래스의 이름
constant
- 기존 상수의 이름
반환 값
성공하면 true
를, 실패하면 false
를 반환합니다.
Examples
예제 #1 uopz_undefine() 예
<?php
define("MY", true);
uopz_undefine("MY");
var_dump(defined("MY"));
?>
위의 예는 다음을 출력합니다.
bool(false)