phpday 2027 - Call for Papers

ReflectionParameter::__toString

(PHP 5, PHP 7, PHP 8)

ReflectionParameter::__toString — To string

Descrizione

public function ReflectionParameter::__toString(): string

Get a human-readable description of the parameter.

Elenco dei parametri

Questa funzione non ha parametri.

Valori restituiti

The string.

Esempi

Example #1 ReflectionParameter::__toString() example

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

Il precedente esempio visualizzerà qualcosa di simile a:

Parameter #0 [ <required> string $string ]

Vedere anche:

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top