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? Quote Link to comment 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() Quote Link to comment 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.