Cast the strings to numeric primitive data types: $num = (int) "10"; $num = (double) "10.12"; // same as (float) "10.12"; · Perform math ...
確定! 回上一頁