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 ',' Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/190567-line-break-after/#findComment-1005098 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.