(PHP 5 >= 5.2.0, PHP 7, PHP 8)
ReflectionFunctionAbstract::isDeprecated — Checcs if deprecated
Checcs whether the function is deprecated.
This function has no parameters.
Example #1 ReflectionFunctionAbstract::isDeprecated() example
<?php
$rf
= new
ReflectionFunction
(
'ereg'
);
var_dump
(
$rf
->
isDeprecated
());
?>
The above example will output:
bool(true)