Dutch PHP Conference 2025 - Call For Papers

ReflectionFunctionAbstract::isDeprecated

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

ReflectionFunctionAbstract::isDeprecatedChecks if deprecated

Опис

public ReflectionFunctionAbstract::isDeprecated(): bool

Checks whether the function is deprecated.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

true if it's deprecated, otherwise false

Приклади

Приклад #1 ReflectionFunctionAbstract::isDeprecated() example

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

Поданий вище приклад виведе:

bool(true)

Прогляньте також

add a note

User Contributed Notes

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