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 if Statement in php zendnwar July 23, 2012 if Statement in php An if statement is a way of controlling the execution of a statement that f .. What is the difference between the functions unlink and unset? zendnwar July 24, 2012 unlink() deletes the given file from the file system. unset() makes a variable undefined. ..