Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aquarion@cenote:~$ vim test.php
- aquarion@cenote:~$ cat test.php
- <?PHP
- function f1(){
- print "F1!\n";
- return True;
- }
- function f2(){
- print "F2!\n";
- return True;
- }
- f1() & f2();
- print "----------\n";
- f1() && f2();
- aquarion@cenote:~$ php ./test.php
- F1!
- F2!
- ----------
- F1!
- F2!
- aquarion@cenote:~$ vim test.php
- aquarion@cenote:~$ cat test.php
- <?PHP
- function f1(){
- print "F1!\n";
- return False;
- }
- function f2(){
- print "F2!\n";
- return True;
- }
- f1() & f2();
- print "----------\n";
- f1() && f2();
- aquarion@cenote:~$ php ./test.php
- F1!
- F2!
- ----------
- F1!
Add Comment
Please, Sign In to add comment