CakeFest 2024: The Official CakePHP Conference

ReflectionParameter::__toString

(PHP 5, PHP 7, PHP 8)

ReflectionParameter::__toStringTo string

Descrição

public ReflectionParameter::__toString(): string

Get a human-readable description of the parameter.

Parâmetros

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

Valor Retornado

The string.

Exemplos

Exemplo #1 ReflectionParameter::__toString() example

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