<?php$a = "hola";try{ if($a == 1){ echo "WTF???"; }else{ throw new Exception('Funcaaaa!!!'); } }catch(Exception $e){ echo $e->getMessage();}?>