Exception::getMessage
Exception::getMessage
Gets the Exception message
string **Exception::getMessage**
Returns the Exception message.
Returns the Exception message as a string.
Voorbeeld: example
<?php
try {
throw new Exception("Some error message");
} catch(Exception $e) {
echo $e->getMessage();
}
?>
Some error message
Throwable::getMessage