phpday 2027 - Call for Papers

ReflectionProperty::__toString

(PHP 5, PHP 7, PHP 8)

ReflectionProperty::__toString — To string

Description

public function 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.5.0 The output for properties with hooks now indicates which hooks the property has, whether those hooks are final, and whether the property is virtual.
8.4.0 The attached doc comment is now included.

See Also

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