Page 1 of 1

Replace line breaks with a comma

Posted: Tue Jun 20, 2006 7:52 pm
by GeXus
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!

Posted: Tue Jun 20, 2006 8:17 pm
by LiveFree

Code: Select all

str_replace("\n", ",", $string);