PHP Conference Japan 2024

ReflectionParameter::getName

(PHP 5, PHP 7, PHP 8)

ReflectionParameter::getName取得參數名稱

說明

public ReflectionParameter::getName(): 字串

取得參數的名稱。

參數

此函式沒有參數。

回傳值

反射參數的名稱。

參見

  • ReflectionParameter::getValue()

新增筆記

使用者貢獻的筆記 1 筆筆記

mike
9 年前
僅供參考,它會傳回參數名稱,但不包含開頭的錢字號 ($) 符號。
To Top