[ create a new paste ] login | about

Link: http://codepad.org/PrcEX946    [ raw code | output | fork ]

upwhere - PHP, pasted on Jun 5:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
$a = 10;
$b = 20;
$c = 30;
$d = 40;
if ($a == $b) {
    echo 'A is equal to B';
} elseif ($a == $c) {
    echo 'A is equal to C';
} elseif ($a == $d) {
    echo 'A is equal to D';
} else {
    echo 'A is actually not equal to anything';
}
?>


Output:
1
A is actually not equal to anything


Create a new paste based on this one


Comments: