- var_dump: documentation ( source)
<?php
try {
try {
try {
throw new Exception('Foo');
}
finally {
throw new Exception('Bar', 0, null);
}
}
catch (Exception $e) {
throw new Exception('Zot', 0, $e);
}
}
catch(Exception $exception) {
$foo = $exception;
while ($actualPrevious = $foo->getPrevious()) {
$previous++;
echo "Previous $previous\n";
var_dump($foo);
}
}