unidox Posted November 18, 2010 Share Posted November 18, 2010 I have multiple \n in a string, and I need to replace it with <br />. How do I go about doing this? Preg replace? Link to comment https://forums.phpfreaks.com/topic/219119-replace/ Share on other sites More sharing options...
AbraCadaver Posted November 18, 2010 Share Posted November 18, 2010 I have multiple \n in a string, and I need to replace it with <br />. How do I go about doing this? Preg replace? nl2br() Link to comment https://forums.phpfreaks.com/topic/219119-replace/#findComment-1136302 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.