将1,234,567,890转换成1234567890 $str = '1,234,567,890'; echo str_replace(',', '', $str, $i); //$i 输出的是装换个多少个','的数量