PHP 8.3.4 Released!

ReflectionParameter::__toString

(PHP 5, PHP 7, PHP 8)

ReflectionParameter::__toString文字列に変換する

説明

public ReflectionParameter::__toString(): string

人間が読めるパラメータの説明を取得します。

パラメータ

この関数にはパラメータはありません。

戻り値

文字列を返します。

例1 ReflectionParameter::__toString() の例

<?php
echo new ReflectionParameter('substr', 0);
?>

上の例の出力は、 たとえば以下のようになります。

Parameter #0 [ <required> string $string ]

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top