ReflectionFunctionAbstract
在线手册:中文 英文
PHP手册

ReflectionFunctionAbstract::isDeprecated

(PHP 5)

ReflectionFunctionAbstract::isDeprecatedChecks if deprecated

说明

public bool ReflectionFunctionAbstract::isDeprecated ( void )

Checks whether the function is deprecated.

参数

此函数没有参数。

返回值

TRUE if it's deprecated, otherwise FALSE

范例

Example #1 ReflectionFunctionAbstract::isDeprecated() example

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

以上例程会输出:

bool(true)

参见


ReflectionFunctionAbstract
在线手册:中文 英文
PHP手册