Reflection ReflectionFunctionAbstract::isDeprecated
(PHP 5 >= 5.2.0, PHP 7, PHP 8)
ReflectionFunctionAbstract::isDeprecated — 더 이상 사용되지 않는지 확인
설명
public ReflectionFunctionAbstract::isDeprecated(): bool
함수가 더 이상 사용되지 않는지 여부를 확인합니다.
매개변수
이 함수에는 매개변수가 없습니다.
반환 값
더 이상 사용되지 않는 경우 true
, 그렇지 않으면 false
Examples
예제 #1 ReflectionFunctionAbstract::isDeprecated() 예제
<?php
$rf = new ReflectionFunction('ereg');
var_dump($rf->isDeprecated());
?>
위의 예는 다음을 출력합니다.
bool(true)
기타
- ReflectionFunctionAbstract::getDocComment() - 문서 주석 가져오기