Return to Snippet

Revision: 10290
at December 16, 2008 09:02 by plindsay


Initial Code
function replace_line_breaks($str, $replace = '') {
	$chars = array("
", "\n", "\r", "chr(13)",  "\t", "\0", "\x0B");
	return str_replace($chars, $replace, $str);
}

Initial URL

                                

Initial Description

                                

Initial Title
Remove/Replace line breaks

Initial Tags

                                

Initial Language
PHP