Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. <?php
  2. $i = 4;
  3.  
  4. try
  5. {
  6. if ($i > 2)
  7. throw new Exception ('i > 2');
  8.  
  9. if ($i > 3)
  10. throw new Exception ('i > 3');
  11. }
  12. catch(Exception $e)
  13. {
  14. var_dump($e);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement