我有这个 PHP 开关:
<?php
$destination = isset($_GET['act']);
switch ($destination) {
default:
echo "test";
break;
case "manage":
echo "manage things";
break;
case "create":
echo "create things";
break;
}
?>
但是,当我去 时test.php?act=create
,输出manage things
不是create things
.... 当我去test.php?act=manage
- 当然我得到manage things
...
所以......我该如何解决这个问题?谢谢