Can someone please tell me why neither one of these are working:
$content = str_replace(array("\r", "\n"), '', $row['content']);
$content = preg_replace( "/\r|\n/", '', $row['content']);
I've tried each one of the to replace
$content = $row['content'];
and for some ungodly reason neither one of them are working. This is simply pulling content from a database but it keeps displaying \r\n when displayed in a page. Why?