anyone know a way to remove the newlines that nl2br() creates?
its really annoying
im adding the text to a mysql db. which im sure works fine with newlines
in a field but i really dont want them :)
if i do a str_replace('\n', '', $text) it seems to remove the linefeed but
not the carriage return or something wierd.
ive looked around as much as i good in phpbuilder.com and other
similar places but found nothing.
the script wont be under heavy use so executing external perl or any
gnu related utils isnt really a problem. but obvjously a php solution
would be great.
any help much appreciated
gavin
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!