phpday 2027 - Call for Papers

ReflectionParameter::__toString

(PHP 5, PHP 7, PHP 8)

ReflectionParameter::__toString — Obtiene una representación textual

Descripción

public function 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 ]

Véase también

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