I have a long list that is broken up by line breaks... But I would like to break up this list by comma instead and remove the line breaks, or replace..
Could anyone tell me how I would do this? Thanks!
Replace line breaks with a comma
Moderator: General Moderators
Code: Select all
str_replace("\n", ",", $string);