21,886
社区成员
发帖
与我相关
我的任务
分享
<?php
$str=",333,";
$string = str_replace($str,',', "111,222,111333,333,333333,");
echo $string;
?>
$str="/(?:^|,)333,/";
$string = preg_replace($str,',', "111,222,111333,333,333333,");
echo $string;
111,222,111333,333333,