ReflectionClass
PHP Manual

ReflectionClass::getTraitNames

(PHP >= 5.4.0)

ReflectionClass::getTraitNamesReturns an array of names of traits used by this class

说明

public array ReflectionClass::getTraitNames ( void )

Warning

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

参数

此函数没有参数。

返回值

Returns an array with trait names in values. Returns NULL in case of an error.


ReflectionClass
PHP Manual