Hi all,
how come this doesn't work?????
# convert to unix new lines
$text = preg_replace("/\r\n/", "\n", $text);
# remove extra new lines
$text = preg_replace("/\n+/", "\n", $text);
is there better ways to remove extra new lines???
regards,
Sid
how come this doesn't work?????
# convert to unix new lines
$text = preg_replace("/\r\n/", "\n", $text);
# remove extra new lines
$text = preg_replace("/\n+/", "\n", $text);
is there better ways to remove extra new lines???
regards,
Sid
Comment