[ad_1]
$str = "125
124
132";
$str = str_replace("\r\n\r\n", ",", $str);
echo $str;
Try the above code. Please let know if this worked.
2
[ad_2]
solved how to Insert comma between values in php [closed]
[ad_1]
$str = "125
124
132";
$str = str_replace("\r\n\r\n", ",", $str);
echo $str;
Try the above code. Please let know if this worked.
2
[ad_2]
solved how to Insert comma between values in php [closed]