Advertisement
Guest User

Untitled

a guest
Jan 8th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. if ($user == 'john' && $userStatus == 'active') {
  2. // evereything is OK
  3. } else {
  4. throw new Exception()...
  5. }
  6.  
  7. if (!($user == 'john' && status == 'active')){
  8. throw new Exception()...
  9. }
  10.  
  11. // everything is OK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement