ReflectionParameter::__toString

文字列に変換する

説明

public string ReflectionParameter::__toString()

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

パラメータ

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

戻り値

文字列を返します。

例1 ReflectionParameter::__toString の例

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

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

Parameter #0 [ <required> string $string ]

参考