Guest User

Untitled

a guest
Nov 16th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. <?php
  2. function warizan($uhen){
  3. if($uhen == 0){
  4. throw new Exception('0じゃ割れないよ!');
  5. }
  6. return 10/$uhen;
  7. }
  8.  
  9. try{
  10. echo warizan(0);
  11. }catch(Exception $e){
  12. echo $e->getMessage(),;
  13. }
  14. ?>
Add Comment
Please, Sign In to add comment