- var_dump: documentation ( source)
<?php
function belette($x = null) {
try {
if ($x === null) {
throw new \Exception('exception');
}
return $x;
} catch (\Exception $e) {
return 'exception';
} finally {
return 'finally';
}
}
var_dump(belette('furet'));
var_dump(belette());