what is the use of try and catch in php code example Example: try catch php try { } catch(Exception $e) { }