略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: ReflectionParameter::getName

2025-02-27

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()
添加备注

用户贡献的备注 1 note

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

官方地址:https://www.php.net/manual/en/reflectionparameter.getname.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3