php8.5
Home/ Manual/ predefined / throwable/ Throwable::__toString

Throwable::__toString

PHP function Edit on GitHub ✎

(PHP 7, PHP 8)

Gets a string representation of the thrown object

Description

Throwable::__toString(): string

Parameters Parameters

Return Values

Returns the string representation of the thrown object.

See Also

  • Exception::__toString

Source: language/predefined/throwable/tostring.xml · from the official PHP manual (php/doc-en)