ReflectionFunction 类

(PHP 5, PHP 7, PHP 8)

简介

ReflectionFunction 类报告有关函数的信息。

类摘要

class ReflectionFunction extends ReflectionFunctionAbstract {
/* 常量 */
public const int IS_DEPRECATED;
/* 继承的属性 */
public string $name;
/* 方法 */
public __construct(Closure|string $function)
public static export(string $name, string $return = ?): string
public invoke(mixed ...$args): mixed
public invokeArgs(array $args): mixed
public isAnonymous(): bool
public isDisabled(): bool
public __toString(): string
/* 继承的方法 */
public ReflectionFunctionAbstract::getAttributes(?string $name = null, int $flags = 0): array
}

预定义常量

ReflectionFunction 修饰符

ReflectionFunction::IS_DEPRECATED

表示弃用函数。

更新日志

版本 说明
8.0.0 已移除 ReflectionFunction::export()

目录

add a note

User Contributed Notes

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