这是我的代码
$a = "Hey there, how do i remove all, the comma from this string,";
$a = str_replace($a,',','';)
echo $a;
我想删除字符串中可用的所有逗号,我该怎么办?
答案 0 :(得分:3)
$a = str_replace(",", "", $a);
答案 1 :(得分:1)
$a = "Hey there, how do i remove all, the comma from this string,";
$a = str_replace(',','',$a);
echo $a;
错误的分号和错误的函数参数。