PHP 8.3.0 RC 6 available for testing

ReflectionParameter::__toString

(PHP 5, PHP 7, PHP 8)

ReflectionParameter::__toStringTo string

说明

public ReflectionParameter::__toString(): string

Get a human-readable description of the parameter.

参数

此函数没有参数。

返回值

The string.

示例

示例 #1 ReflectionParameter::__toString() example

<?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