ReflectionClass::isTrait

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

ReflectionClass::isTrait返回了是否是 trait

说明

public ReflectionClass::isTrait(): bool

警告

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

参数

此函数没有参数。

返回值

如果是 trait 返回 true,否则返回 false。出现错误时返回 null

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top