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 How to copy a file from one directory to another using PHP? zendnwar March 18, 2013 This should be pretty easy. You want to copy & rename images that already exist on the serv .. What is the difference between Split and Explode? zendnwar July 20, 2012 split()-used for JavaScript for processing the string and the explode()-used to convert the Str ..