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 Increase PHP memory limit zendnwar May 19, 2016 PHP memory limit sometimes makes it problem to upload. please check way to increase your memory .. How to rename list of images in php zendnwar July 3, 2013 <?php $directory = “folder_name/”; // Folder name of images //get ..