文字

ReflectionFunctionAbstract::isDeprecated

(PHP 5)

ReflectionFunctionAbstract::isDeprecated检查是否已经弃用

说明

public bool ReflectionFunctionAbstract::isDeprecated ( void )

检查函数是否已经被弃用

参数

此函数没有参数。

返回值

弃用返回 TRUE ,否则返回 FALSE

范例

Example #1 ReflectionFunctionAbstract::isDeprecated() example

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

以上例程会输出:

bool(true)

参见

  • ReflectionFunctionAbstract::getDocComment() - 获取注释内容
上一篇: 下一篇: