php-src/tests/lang/006.phpt
2004-05-19 08:45:46 +00:00

24 lines
239 B
PHP

--TEST--
Nested If/ElseIf/Else Test
--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