This shows you the differences between the selected revision and the current version of the page.
| php:wtf 2009/08/27 15:51 | php:wtf 2009/08/27 15:54 current | ||
|---|---|---|---|
| Line 54: | Line 54: | ||
| no once | no once | ||
| - | ===== try/catch ===== | ||
| - | |||
| - | <code> | ||
| - | try { | ||
| - | try { | ||
| - | throw new Exception('first'); | ||
| - | } catch (Exception $e) { | ||
| - | throw new Exception('second'); | ||
| - | } | ||
| - | } catch (Exception $e) { | ||
| - | echo "caught"; | ||
| - | } | ||
| - | </code> | ||