PHP 8.0.3 Released!

ReflectionFunctionAbstract::getName

(PHP 5 >= 5.2.0, PHP 7)

ReflectionFunctionAbstract::getNameGets function name

Description

public ReflectionFunctionAbstract::getName ( ) : string

Get the name of the function.

Warning

This function is currently not documented; only its argument list is available.

Parameters

This function has no parameters.

Return Values

The name of the function.

add a note add a note

User Contributed Notes 1 note

up
0
PR
21 days ago
If you call getName() on an anonymous function you'll get "{closure}".
To Top