ReflectionFunctionAbstract
PHP Manual

ReflectionFunctionAbstract::isDeprecated

(PHP 5, PHP 7)

ReflectionFunctionAbstract::isDeprecatedChecks if deprecated

Descrierea

public bool ReflectionFunctionAbstract::isDeprecated ( void )

Checks whether the function is deprecated.

Parametri

Această funcție nu are parametri.

Valorile întoarse

TRUE if it's deprecated, otherwise FALSE

Exemple

Example #1 ReflectionFunctionAbstract::isDeprecated() example

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

Exemplul de mai sus va afișa:

bool(true)

A se vedea și


ReflectionFunctionAbstract
PHP Manual