How to Transform a String from Multi-Line to Single-Line in PHP? zendnwar August 18, 2014 PHP Basic 1 Comment It is very simple. Just add below code. echo str_replace(array(“\r”,”\n”),””, $str); Related Posts Explain include(), include_once, require() and require_once. zendnwar July 24, 2012 Explain include(), include_once, require() and require_once: include() The include() function t .. Deprecated: Function set_magic_quotes_runtime() zendnwar January 31, 2013 Open the “include/config.php” find: set_magic_quotes_runtime(0); replace: ini_set(& ..