php8.5
Home/ Manual/ reflection / reflectionfunction/ ReflectionFunction::getClosure

ReflectionFunction::getClosure

PHP function Edit on GitHub ✎

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

Returns a dynamically created closure for the function

Description

ReflectionFunction::getClosure(): Closure

Get a dynamically created closure for the function.

Parameters Parameters

Return Values

Returns the newly created Closure.

See Also

Source: reference/reflection/reflectionfunction/getclosure.xml · from the official PHP manual (php/doc-en)