PHP 8.5.0 Alpha 1 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 tiene parámetros.

Valores devueltos

La cadena.

Ejemplos

Ejemplo #1 Ejemplo de ReflectionParameter::__toString()

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

El resultado del ejemplo sería algo 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