PHP 8.3.7 Released!

ReflectionParameter::__toString

(PHP 5, PHP 7, PHP 8)

ReflectionParameter::__toStringPara string

Descrição

public ReflectionParameter::__toString(): string

Obtém uma descrição legível do parâmetro.

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

A string.

Exemplos

Exemplo #1 Exemplo de ReflectionParameter::__toString()

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

O exemplo acima produzirá algo semelhante a:

Parameter #0 [ <required> string $string ]

Veja Também

add a note

User Contributed Notes

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