ReflectionParameter::__toString

(PHP 5, PHP 7, PHP 8)

ReflectionParameter::__toStringRécupère une représentation textuelle

Description

public ReflectionParameter::__toString(): string

Récupère une représentation textuelle du paramètre.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

La chaîne.

Exemples

Exemple #1 Exemple de ReflectionParameter::__toString()

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

Résultat de l'exemple ci-dessus est similaire à :

Parameter #0 [ <required> string $string ]

Voir aussi

add a note

User Contributed Notes

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