• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • ReflectionFunctionAbstract::isDeprecated()

    (PHP 5 >= 5.2.0, PHP 7)

    检查是否已经弃用

    说明

    publicReflectionFunctionAbstract::isDeprecated(void) : bool

    检查函数是否已经被弃用

    参数

    此函数没有参数。

    返回值

    弃用返回TRUE,否则返回FALSE

    范例

    Example #1ReflectionFunctionAbstract::isDeprecated()example

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

    以上例程会输出:

    bool(true)
    

    参见

    • ReflectionFunctionAbstract::getDocComment() 获取注释内容