ReflectionFunctionAbstract::isDeprecated

(PHP 5, PHP 7)
Checks if deprecated
public bool ReflectionFunctionAbstract::isDeprecated ( void )

Checks whether the function is deprecated.

Returns:

TRUE if it's deprecated, otherwise FALSE

Examples:
ReflectionFunctionAbstract::isDeprecated() example
<?php
$rf = new ReflectionFunction('ereg');
var_dump($rf->isDeprecated());
?>

The above example will output:

bool(true)
See also:

ReflectionFunctionAbstract::getDocComment() -

doc_php
2016-02-24 16:13:37
Comments
Leave a Comment

Please login to continue.