CakeFest 2024: The Official CakePHP Conference

ReflectionFunctionAbstract::isDeprecated

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

ReflectionFunctionAbstract::isDeprecatedChecks if deprecated

Descrizione

public ReflectionFunctionAbstract::isDeprecated(): bool

Checks whether the function is deprecated.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

true if it's deprecated, otherwise false

Esempi

Example #1 ReflectionFunctionAbstract::isDeprecated() example

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

Il precedente esempio visualizzerà:

bool(true)

Vedere anche:

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top