CakeFest 2025 Madrid: The Official CakePHP Conference

ReflectionFunctionAbstract::getName

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

ReflectionFunctionAbstract::getNameGets function name

Description

public ReflectionFunctionAbstract::getName(): string

Get the name of the function.

Parameters

This function has no parameters.

Return Values

The name of the function.

add a note

User Contributed Notes 1 note

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant