CakeFest 2024: The Official CakePHP Conference

ReflectionFunctionAbstract::inNamespace

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

ReflectionFunctionAbstract::inNamespace检查是否处于命名空间

说明

public ReflectionFunctionAbstract::inNamespace(): bool

检查函数是否在命名空间内定义。

参数

此函数没有参数。

返回值

在命名空间内返回 true,否则返回 false

add a note

User Contributed Notes

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