[Solved] how to Insert comma between values in php [closed]


$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

solved how to Insert comma between values in php [closed]