- var_dump: documentation ( source)
<?php
function run() {
try {
throw Exception ('a');
} finally {
throw Exception ('b');
}
}
try {
run();
} Catch (Exception $e) {
var_dump($e->getMessage(), $e->getPrevious()->getMessage());
}