The ReflectionFunction class

(PHP 5, PHP 7, PHP 8)

Introduction

The ReflectionFunction class reports information about a function.

Class synopsis

class ReflectionFunction extends ReflectionFunctionAbstract {
/* Constants */
public const int IS_DEPRECATED;
/* Inherited properties */
public string $name;
/* Methods */
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
/* Inherited methods */
}

Predefined Constants

ReflectionFunction Modifiers

ReflectionFunction::IS_DEPRECATED

Indicates deprecated functions.

Changelog

Version Description
8.0.0 ReflectionFunction::export() was removed.

Table of Contents

add a note

User Contributed Notes

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