- var_dump: documentation ( source)
<?php
try {
try {
throw new Exception('Foo');
}
finally {
throw new Exception('Bar', 0, null);
}
}
catch(Exception $exception) {
// var_dump($exception);
$actualPrevious = $exception->getPrevious();
var_dump($actualPrevious);
}