php2go/fixtures/0014-switch.php

16 lines
167 B
PHP
Raw Normal View History

<?php
$x = true;
switch($x) {
case true:
echo "true";
break;
echo "unreached";
case false:
echo "false";
// fallthrough
default:
echo "default";
}