codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php function one() { echo "One"; return false; } function two() { echo "Two"; return true; } one() && two(); // Outputs One echo "\n"; two() || one(); // Outputs Two ?>
Private
[
?
]
Run code
Submit