开发者

how do i remove the matched character from a string?

开发者 https://www.devze.com 2023-02-22 03:01 出处:网络
here is my code $a = \"Hey there, how do i remove all, the comma from this string,\"; $a = str_replace($a,\',\',\'\';)

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

精彩评论

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