erme Posted February 1, 2010 Share Posted February 1, 2010 Hi, I currently have Text, Text text, Text Is there anyway to export it so that it gets written as Text, Text text, Text Other words I want a new line after ',' Link to comment https://forums.phpfreaks.com/topic/190567-line-break-after/ Share on other sites More sharing options...
premiso Posted February 1, 2010 Share Posted February 1, 2010 $text = "text, text text, text"; $text = str_replace(",", ",<br />\n", $text); echo $text; If you want new line, remove the <br /> if you want an html break, leave it as is. Link to comment https://forums.phpfreaks.com/topic/190567-line-break-after/#findComment-1005095 Share on other sites More sharing options...
erme Posted February 1, 2010 Author Share Posted February 1, 2010 Perfect! Thanks Link to comment https://forums.phpfreaks.com/topic/190567-line-break-after/#findComment-1005098 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.