Page 1 of 1

How to strip a string from carriage returns and line breaks

Posted: Tue Oct 04, 2005 11:26 am
by Antek_Ryu
Hi All


I have string of text but for some reason when the text comes through it has hidden carriage returns and line breaks that I dont want how can I stip the text from all these special character;



Antek

Posted: Tue Oct 04, 2005 11:33 am
by feyd
something like

Code: Select all

$text = str_replace(array("\n","\r"),'',$text);