xref: /PHP-8.4/tests/lang/006.phpt (revision f8d79582)
1--TEST--
2Nested If/ElseIf/Else Test
3--FILE--
4<?php
5$a=1;
6$b=2;
7
8if($a==0) {
9    echo "bad";
10} elseif($a==3) {
11    echo "bad";
12} else {
13    if($b==1) {
14        echo "bad";
15    } elseif($b==2) {
16        echo "good";
17    } else {
18        echo "bad";
19    }
20}
21?>
22--EXPECT--
23good
24