array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'reflectionfunctionabstract.isdeprecated.php', 1 => 'ReflectionFunctionAbstract::isDeprecated', ), 'up' => array ( 0 => 'class.reflectionfunctionabstract.php', 1 => 'ReflectionFunctionAbstract', ), 'prev' => array ( 0 => 'reflectionfunctionabstract.isclosure.php', 1 => 'ReflectionFunctionAbstract::isClosure', ), 'next' => array ( 0 => 'reflectionfunctionabstract.isgenerator.php', 1 => 'ReflectionFunctionAbstract::isGenerator', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'es', 'path' => 'reference/reflection/reflectionfunctionabstract/isdeprecated.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.2.0, PHP 7, PHP 8)
ReflectionFunctionAbstract::isDeprecated — Comprueba si está obsoleta
Comprueba si la función está o no obsoleta.
Esta función no tiene parámetros.
Ejemplo #1 Ejemplo de ReflectionFunctionAbstract::isDeprecated()
<?php
$rf = new ReflectionFunction('ereg');
var_dump($rf->isDeprecated());
?>
El resultado del ejemplo sería:
bool(true)