mirror of
https://github.com/php/php-src.git
synced 2024-12-04 15:23:44 +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
|