summaryrefslogtreecommitdiff
path: root/tests/lang/006.phpt
blob: e9e8c2357f2e35cef3ed8ccdd5a29926879c298b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Nested If/ElseIf/Else Test
--POST--
--GET--
--FILE--
<?php
$a=1;
$b=2;

if($a==0) {
	echo "bad";
} elseif($a==3) {
	echo "bad";
} else {
	if($b==1) {
		echo "bad";
	} elseif($b==2) {
		echo "good";
	} else {
		echo "bad";
	}
}
?>	
--EXPECT--
good