For changing to PHP 5,3 ... not sure if I can just change the function name in the below from ereg_replace to preg_replace - if that will result in the same or if the syntax has to be changed as well regarding "[\n\r]" og "\t\t+" - anyone who can tell me that for sure (very hard to test in the given setup environment)...
$line2 = ereg_replace("[\n\r]", "", $line);
$line2 = ereg_replace("\t\t+", "", $line2);
Thanks in advance...