开发者

how do i remove the matched character from a string?

here is my code

$a = "Hey there, how do i remove all, the comma from this string,";
$a = str_replace($a,',','';)
echo $a;

i want to remove all the commas available in the string, 开发者_如何学Gohow do i do it?


$a = str_replace(",", "", $a);


$a = "Hey there, how do i remove all, the comma from this string,";
$a = str_replace(',','',$a);
echo $a;

Misplaced semi-colon and wrong function arguments.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜