ReflectionConstant::isDeprecated

(PHP 8 >= 8.4.0)

ReflectionConstant::isDeprecatedChecks if deprecated

Açıklama

public ReflectionConstant::isDeprecated(): bool

Checks whether the constant is deprecated.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

true if it's deprecated, otherwise false

Örnekler

Örnek 1 ReflectionConstant::isDeprecated() example

<?php
// E_STRICT is deprecated as of PHP 8.4
var_dump((new ReflectionConstant('E_STRICT'))->isDeprecated());
?>

Yukarıdaki örneğin PHP 8.4 çıktısı:

bool(true)
add a note

User Contributed Notes

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