且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PHP 从数字字符串中删除逗号

更新时间:2023-02-19 12:53:00

未测试,但可能类似于 if(preg_match("/^[0-9,]+$/", $a)) $a = str_replace(...)

Not tested, but probably something like if(preg_match("/^[0-9,]+$/", $a)) $a = str_replace(...)