<?php $foo = "1"; // $foo 是字符串类型$bar = (int)$foo; ... 严格意义上讲 sprintf 的转换结果还是string型,因此它不应该算是字符串转化为整数的 ...
確定! 回上一頁