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