FYI, it returns the parameter name without the dollars($) sign at the start.
(PHP 5, PHP 7, PHP 8)
ReflectionParameter::getName — Gets parameter name
Gets the name of the parameter.
此函数没有参数。
The name of the reflected parameter.
FYI, it returns the parameter name without the dollars($) sign at the start.