[ PHP ] – 字串轉數字 2015 / 10 / 7 By jeff 0 Comments string (字串處理) 字串轉數字 [php] $str=’0002′; echo (int)$str; //顯示結果 2 [/php]