ReflectionFunction 类
(PHP 5, PHP 7, PHP 8)
简介
ReflectionFunction 类报告有关函数的信息。
类摘要
/* 常量 */
/* 继承的属性 */
/* 方法 */
/* 继承的方法 */
}预定义常量
ReflectionFunction 修饰符
-
ReflectionFunction::IS_DEPRECATEDint -
表示弃用函数。
更新日志
| 版本 | 说明 |
|---|---|
| 8.4.0 | 所有类常量现已类型化。 |
| 8.0.0 | 已移除 ReflectionFunction::export()。 |
目录
- ReflectionFunction::__construct — Constructs a ReflectionFunction object
- ReflectionFunction::export — Exports function
- ReflectionFunction::getClosure — Returns a dynamically created closure for the function
- ReflectionFunction::invoke — Invokes function
- ReflectionFunction::invokeArgs — Invokes function args
- ReflectionFunction::isAnonymous — Checks if a function is anonymous
- ReflectionFunction::isDisabled — Checks if function is disabled
- ReflectionFunction::__toString — Returns the string representation of the ReflectionFunction object