mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
24 lines
239 B
PHP
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
|