Exception::__toString
Exception::__toString
String representation of the exception
string **Exception::__toString**
Returns the representation of the exception.
string
Returns the representation of the exception.
string
Voorbeeld: example
<?php
try {
throw new Exception("Some error message");
} catch(Exception $e) {
echo $e;
}
?>
exception 'Exception' with message 'Some error message' in /home/bjori/tmp/ex.php:3
Stack trace:
#0 {main}
Throwable::__toString