RsD0p9BK
8/19/2016 - 8:56 AM

replace_nl2br.php

// str_replace can't find \n (newlines) - but nl2br works

// (\n, \r, \t, etc. are only interpolated as special characters inside double-quote string literals.)
str_replace("\n", ' ', $content);

// http://board.phpbuilder.com/showthread.php?10329173-str_replace-can-t-find-n-(newlines)-but-nl2br-works