ReflectionParameter::getName

(PHP 5, PHP 7, PHP 8)

ReflectionParameter::getNameGets parameter name

说明

public ReflectionParameter::getName(): string

Gets the name of the parameter.

参数

此函数没有参数。

返回值

The name of the reflected parameter.

参见

  • ReflectionParameter::getValue()
add a noteadd a note

User Contributed Notes 1 note

up
17
mike
7 years ago
FYI, it returns the parameter name without the dollars($) sign at the start.

备份地址:http://www.lvesu.com/blog/php/reflectionparameter.getname.php