Error::getTraceAsString
Error::getTraceAsString
Gets the stack trace as a string
string **Error::getTraceAsString**
Returns the stack trace as a string.
Returns the stack trace as a string.
Voorbeeld: example
<?php
function test() {
throw new Error;
}
try {
test();
} catch(Error $e) {
echo $e->getTraceAsString();
}
?>
#0 /home/bjori/tmp/ex.php(7): test()
#1 {main}
Throwable::getTraceAsString