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 What is ucfirst, ucwords, lcfirst, strtolower, strtoupper function in php? zendnwar July 26, 2012 What is ucfirst, ucwords, lcfirst, strtolower, strtoupper function in php? ucfirst : Make a s .. New Functions in php5 zendnwar December 13, 2012 New Functions in php5 PHP 5 there are some new functions. Which are given below: Arrays: array_ ..