Hi,
I want to remove blank lines in a text area. That is when I submit a form if he enters a enter in the text area, it comes as a blank text. I want remove this black line.
Warne is the best.
Murli comes second.
should come as warne is the best and murli is the second.
Regards
Removing blank spaces in textarea
Moderator: General Moderators
try this
Code: Select all
echo str_replace("\n", " ", $string);