<?php $foo = “1”; // $foo 是字串型別 $bar = (int)$foo; // $bar 是整型 ?> 對於整型來說,強制轉換型別名稱為int或者integer。 2.內建函式方式
確定! 回上一頁