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

ReflectionClass::getProperty

(PHP 5)

ReflectionClass::getPropertyGets property

说明

public ReflectionProperty ReflectionClass::getProperty ( string $name )

Gets a property.

Warning

本函数还未编写文档,仅有参数列表。

参数

name

The property name.

返回值

A ReflectionProperty.

参见


ReflectionClass
在线手册:中文 英文
PHP手册
PHP手册 - N: Gets property

用户评论:

eric at naeseth dot com (02-Aug-2011 11:38)

If the class doesn't have a property with the given name, a ReflectionException will be raised.