Hapus Line Break HTML PHP

preg_replace( "/\r|\n/", "", $yourString );
Nice Nightingale