Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ReflectionFunction::exportReflectionFunction::invoke>
^ReflectionFunctionLast updated: Mon, 26 Oct 2026

ReflectionFunction::getClosure

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

ReflectionFunction::getClosure — Returns a dynamically created closure for the function

Description

public function ReflectionFunction::getClosure(): Closure

Get a dynamically created closure for the function.

Parameters

This function has no parameters.

Return Values

Returns the newly created Closure.


<ReflectionFunction::exportReflectionFunction::invoke>
^ReflectionFunctionLast updated: Mon, 26 Oct 2026