ReflectionParameter::__toString
(PHP 5, PHP 7, PHP 8)
ReflectionParameter::__toString — To string
Description
Get a human-readable description of the parameter.
Parameters
This function has no parameters.
Return Values
The string.
Examples
Example #1 ReflectionParameter::__toString() example
<?php
echo new ReflectionParameter('substr', 0);
?>The above example will output something similar to:
Parameter #0 [ <required> string $string ]
See Also
- ReflectionFunction::__toString() - Returns the string representation of the ReflectionFunction object
- ReflectionMethod::__toString() - Returns the string representation of the Reflection method object
- __toString()
↑ and ↓ to navigate • Enter to select • Esc to close • / to open