PHP Velho Oeste 2024

Throwable::getMessage

(PHP 7)

Throwable::getMessageGets the message

설명

abstract public string Throwable::getMessage ( void )

Returns the message associated with the thrown object.

인수

이 함수는 인수가 없습니다.

반환값

Returns the message associated with the thrown object.

참고

add a note add a note

User Contributed Notes 1 note

up
-14
lavaniapankaj at gmail dot com
4 years ago
try
{
    functionnotexists();
}
catch (Throwable $e)
{
    /* Print error message. */
    pprint_r($e->getMessage());
}
To Top