W3cubDocs

/PHP

ReflectionConstant::__toString

(PHP 8 >= 8.4.0)

ReflectionConstant::__toStringReturns string representation

Description

public ReflectionConstant::__toString(): string

Returns the string representation of the ReflectionConstant object.

Parameters

This function has no parameters.

Return Values

A string representation of this ReflectionConstant instance.

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/reflectionconstant.tostring.php