Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ThrowableThrowable::getCode>
^ThrowableLast updated: Mon, 26 Oct 2026

Throwable::getMessage

(PHP 7, PHP 8)

Throwable::getMessage — Gets the message

Description

public function Throwable::getMessage(): string

Returns the message associated with the thrown object.

Parameters

This function has no parameters.

Return Values

Returns the message associated with the thrown object.

See Also


<ThrowableThrowable::getCode>
^ThrowableLast updated: Mon, 26 Oct 2026