Guest User

Untitled

a guest
Jan 14th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. aquarion@cenote:~$ vim test.php
  2. aquarion@cenote:~$ cat test.php
  3. <?PHP
  4.  
  5. function f1(){
  6. print "F1!\n";
  7. return True;
  8. }
  9.  
  10. function f2(){
  11. print "F2!\n";
  12. return True;
  13. }
  14.  
  15. f1() & f2();
  16.  
  17. print "----------\n";
  18.  
  19. f1() && f2();
  20.  
  21.  
  22. aquarion@cenote:~$ php ./test.php
  23. F1!
  24. F2!
  25. ----------
  26. F1!
  27. F2!
  28. aquarion@cenote:~$ vim test.php
  29. aquarion@cenote:~$ cat test.php
  30. <?PHP
  31.  
  32. function f1(){
  33. print "F1!\n";
  34. return False;
  35. }
  36.  
  37. function f2(){
  38. print "F2!\n";
  39. return True;
  40. }
  41.  
  42. f1() & f2();
  43.  
  44. print "----------\n";
  45.  
  46. f1() && f2();
  47.  
  48.  
  49. aquarion@cenote:~$ php ./test.php
  50. F1!
  51. F2!
  52. ----------
  53. F1!
Add Comment
Please, Sign In to add comment