carraras Posted July 1, 2006 Share Posted July 1, 2006 I am trying to use [code]$myrow["body"]=str_replace("\n","<br>",$myrow["body"]);[/code]I am changing any \n to a br.The [color=blue]$myrow["body"][/color] is stored in MySQL as a [color=purple]Blob[/color].Do I need to use another function? Or what would be the correct way to do this. Link to comment https://forums.phpfreaks.com/topic/13405-str_replace-with-a-blob/ Share on other sites More sharing options...
Orio Posted July 1, 2006 Share Posted July 1, 2006 [url=http://www.php.net/manual/en/function.nl2br.php]nl2br()[/url]Orio. Link to comment https://forums.phpfreaks.com/topic/13405-str_replace-with-a-blob/#findComment-51749 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.