mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
20 lines
183 B
PHP
20 lines
183 B
PHP
--TEST--
|
|
Simple Switch Test
|
|
--FILE--
|
|
<?php
|
|
$a=1;
|
|
switch($a) {
|
|
case 0:
|
|
echo "bad";
|
|
break;
|
|
case 1:
|
|
echo "good";
|
|
break;
|
|
default:
|
|
echo "bad";
|
|
break;
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
good
|