\r\n db saving and echo issue

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: \r\n db saving and echo issue

Post by johnj » Sat May 25, 2013 1:10 am

if you do not want \r\n, just remove it before you save and retrieve data from the database.

if nl2br does not work then try using str_replace or preg_replace.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests