- var_export: documentation ( source)
<?php
function test() {
try {
return 5;
} finally {
try {
// NOOP
} catch(Exception $e) {
// NOOP
var_export($e);
} finally {
// NOOP
}
}
}
$a = test();
if($a !== 5) {
echo "FAILED: expected 5, recieved ", var_export($a), PHP_EOL;
} else {
echo "Passed", PHP_EOL;
}