RE: [PHP] How to remove new line character?
| From: | Don Read | Date: | Mon, 03 Nov 2003 19:56:53 +0000 |
| Subject: | RE: [PHP] How to remove new line character? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168410@lists.php.net to get a copy of this message | ||
On 02-Nov-2003 Koala Yeung wrote:
> Thanks a lot
>
> I'd like to remove newline only.
> Is there any simple way?
>
rtrim($str, "\r\n");
Regards,
--
Don Read dread@ispwest.com
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.