- var_dump: documentation ( source)
<?php
class MyException extends Exception { }
class Test {
public function testing() {
try {
try {
throw new MyException('foo!');
} catch (MyException $e) {
echo $e->getMessage();
// rethrow it
//throw $e;
}
} catch (Exception $fdvcfd) {
var_dump($fdvcfd->getMessage());
}
}
}
$foo = new Test;
$foo->testing();