array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), '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' => 'en', '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 — Checks if deprecated
Checks whether the function is deprecated.
Esta função não possui parâmetros.
Exemplo #1 ReflectionFunctionAbstract::isDeprecated() example
<?php
$rf = new ReflectionFunction('ereg');
var_dump($rf->isDeprecated());
?>
O exemplo acima produzirá:
bool(true)