The ReflectionFunction class

(PHP 5, PHP 7, PHP 8)

Introduction

The ReflectionFunction class reports information about a function.

Class synopsis

classReflectionFunctionextendsReflectionFunctionAbstract {
publicconstintIS_DEPRECATED;
public__construct(Closure|string$function)
publicstaticexport(string$name, string$return = ?): string
publicinvoke(mixed...$args): mixed
publicinvokeArgs(array$args): mixed
publicisAnonymous(): bool
publicisDisabled(): bool
}

Predefined Constants

ReflectionFunction Modifiers

ReflectionFunction::IS_DEPRECATED

Indicates deprecated functions.

Changelog

VersionDescription
8.0.0ReflectionFunction::export() was removed.

Table of Contents

To Top