- var_dump: documentation ( source)
<?php
function someFunc($a){
var_dump($a);
throw new Exception('blaaaaaaaaaaaaaah');
};
function tryCatch($callable, ...$args){
try{
return $callable(...$args);
}catch(Exception $e){
return null;
//hehehe he he heh we do nothing what you gonna do he he
}
}
tryCatch('someFunc','jjj');