<?php $flag = "1"; switch ($flag) { case "0": echo "userAdd"; break; case "1": echo "userUpdate"; break; case "2": echo "userDel"; break; default: echo "userGet"; } ?>
<?php $flag = "1"; switch ($flag) { case "0": echo "userAdd"; break; case "1": echo "userUpdate"; break; case "2": echo "userDel"; break; default: echo "userGet"; } ?>