5. 條件判斷與流程控制
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
<input type='hidden' name='op' value='欲執行動作'>if($_REQUEST['op'] == "欲執行動作"){
執行動作;
}switch($變數名稱){
case "值1":
執行動作1;
break;
case "值2":
執行動作2;
break;
default:
預設執行動作;
break;
}