How do you take a string and insert a "\n" any where there is a carriage return / line feed?
$string = ereg_replace("\r\n", "\n", $string);
HTH
inK
So this will take a string that has no escape-carriage return, hence !="\n\r" in the string. Just an ascii character that represents the carriage return. i.e. Chr(13).