PHP 8.5.0 Alpha 2 available for testing

ReflectionParameter::__toString

(PHP 5, PHP 7, PHP 8)

ReflectionParameter::__toStringObtiene una representación textual

Descripción

public ReflectionParameter::__toString(): string

Obtiene una representación textual del parámetro.

Parámetros

Esta función no contiene ningún parámetro.

Valores devueltos

La cadena.

Ejemplos

Ejemplo #1 Ejemplo de ReflectionParameter::__toString()

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

Resultado del ejemplo anterior es similar a :

Parameter #0 [ <required> string $string ]

Ver también

add a note

User Contributed Notes

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