RE: [PHP] How to remove new line character?
| From: | Simon Stiefel | Date: | Sun, 02 Nov 2003 16:25: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-168335@lists.php.net to get a copy of this message | ||
Hi,
try it with the 'chop()'-function.
Note, that this also removes any other whitespace-characters like tabulators
and spaces.
HTH,
Simon
> -----Original Message-----
> From: Shu Hung Yeung [mailto:perlkoala@hotmail.com]
> Sent: Sunday, November 02, 2003 5:14 PM
> To: php-general@lists.php.net
> Subject: [PHP] How to remove new line character?
>
>
> Hello,
>
> I am a beginner of PHP.
>
> I know a little about Perl.
> In Perl, there is a chomp() function to remove newline
> (return) character in
> a long string.
> How about PHP? Can I do the same in PHP
>
> Thankyou