The ReflectionFunction class
(PHP 5, PHP 7, PHP 8)
Introduction
The ReflectionFunction class reports information about a function.
Class synopsis
/* Constants */
/* Inherited properties */
/* Methods */
/* Inherited methods */
}Predefined Constants
ReflectionFunction Modifiers
ReflectionFunction::IS_DEPRECATEDintIndicates deprecated functions.
Changelog
| Version | Description |
|---|---|
| 8.4.0 | The class constants are now typed. |
| 8.0.0 | ReflectionFunction::export() was removed. |
Table of Contents
- 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
↑ and ↓ to navigate • Enter to select • Esc to close • / to open