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
How to strip a string from carriage returns and line breaks
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
something like
Code: Select all
$text = str_replace(array("\n","\r"),'',$text);