略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: ReflectionClass::isTrait

2024-04-27

ReflectionClass::isTrait

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

ReflectionClass::isTrait返回了是否为一个 trait

说明

public ReflectionClass::isTrait(): bool

警告

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

参数

此函数没有参数。

返回值

如果是 trait 返回 true,否则返回 false。 在出现错误的情况下,将会返回 null

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/reflectionclass.istrait.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3