PHP error handling . Does this type of error handling code look familiar? function doFunction($var) { if(is_numeric($var)) { /* do some stuff*/ } else { return -1; } }. BLEH. How ugly is that? There’s no indication whether -1 is actually …

Read more here: 
PHP error handling « puremango.co.uk