PHP 8.3.4 Released!

ReflectionFunctionAbstract::getName

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

ReflectionFunctionAbstract::getNameRécupère le nom d'une fonction

Description

public ReflectionFunctionAbstract::getName(): string

Récupère le nom d'une fonction.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Le nom de la fonction.

Voir aussi

add a note

User Contributed Notes 1 note

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