php echo intval(4.3); //4 echo intval(4.6); // 4 ?> 註:intval如果是字符型的會自動轉換為0 如. intval('abc');. 輸出結果0. 如果是. intval ...
確定! 回上一頁