ReflectionConstant::isDeprecated
(PHP 8 >= 8.4.0)
ReflectionConstant::isDeprecated — Checks if deprecated
Description
Checks whether the constant is deprecated.
Parameters
This function has no parameters.
Examples
Example #1 ReflectionConstant::isDeprecated() example
<?php
// E_STRICT is deprecated as of PHP 8.4
var_dump((new ReflectionConstant('E_STRICT'))->isDeprecated());
?>Output of the above example in PHP 8.4:
bool(true)
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
