PHP 8.5.0 Alpha 1 available for testing

ReflectionFunctionAbstract::getName

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

ReflectionFunctionAbstract::getNameObtiene el nombre de una función

Descripción

public ReflectionFunctionAbstract::getName(): string

Obtiene el nombre de una función.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

El nombre de la función.

Ver también

add a note

User Contributed Notes 1 note

up
2
PR
4 years ago
If you call getName() on an anonymous function you'll get "{closure}".
To Top