W3cubDocs

/PHP

ReflectionProperty::__toString

(PHP 5, PHP 7, PHP 8)

ReflectionProperty::__toStringTo string

Description

public ReflectionProperty::__toString(): string

Returns the string representation of the property.

Parameters

This function has no parameters.

Return Values

A string representation of this ReflectionProperty instance.

Changelog

Version Description
8.4.0 The attached doc comment is now included.

See Also

© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/reflectionproperty.tostring.php