uopz_unset_return
(PECL uopz 5, PECL uopz 6, PECL uopz 7)
uopz_unset_return — 함수에 대해 이전에 설정된 반환 값을 설정 해제합니다.
설명
uopz_unset_return(string $function
): bool
uopz_unset_return(string $class
, string $function
): bool
이전에 uopz_set_return()으로 설정한 function
의 반환 값을 설정 해제합니다.
매개변수
class
- 함수를 포함하는 클래스의 이름
function
- 함수의 이름
반환 값
성공하면 true
Examples
예제 #1 uopz_unset_return() 예제
<?php
uopz_set_return("strlen", 42);
$len = strlen("Banana");
uopz_unset_return("strlen");
echo $len + strlen("Banana");
?>
위의 예는 다음을 출력합니다.
48