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 Deprecated: Function set_magic_quotes_runtime() zendnwar January 31, 2013 Open the “include/config.php” find: set_magic_quotes_runtime(0); replace: ini_set(& .. How to rename list of images in php zendnwar July 3, 2013 <?php $directory = “folder_name/”; // Folder name of images //get ..