HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
PHP Exception Reference : Throw an exception and then output its message
The getMessage()
method returns a description of the error or behaviour that caused the exception to be thrown.
Return Value: | Returns a string |
---|
Read more about Exceptions in our PHP Exceptions Chapter.
❮ PHP Exception Reference