ReflectionParameter::getName

(PHP 5, PHP 7)

ReflectionParameter::getNameGets parameter name

Description

public ReflectionParameter::getName ( void ) : string

Gets the name of the parameter.

Parameters

This function has no parameters.

Return Values

The name of the reflected parameter.

See Also

  • ReflectionParameter::getValue()

add a note add a note

User Contributed Notes 1 note

up
12
mike
4 years ago
FYI, it returns the parameter name without the dollars($) sign at the start.
To Top