RsD0p9BK
5/18/2016 - 6:18 AM

From http://stackoverflow.com/questions/3760816/remove-new-lines-from-string

$string = preg_replace('~[\r\n\t]+~', '', $string);