msgbartop
A chronological documentation test project, nothing serious, really!
msgbarbottom

04 Apr 2007 Remove blank / empty lines

Posted by

function removeEmptyLines($string)
{
return preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $string);
}

Tags: ,

Comments are closed.