Re: Getting to many returns when creating a text file
| From: | CC Zona | Date: | Tue, 08 May 2001 16:59:40 +0000 |
| Subject: | Re: Getting to many returns when creating a text file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51935@lists.php.net to get a copy of this message | ||
In article <478EB6C82CC2D4119AF300B0D07963F4087721@NTSERVER01>,
Sam@dragoman.co.uk (Sam) wrote:
> But, it appears that the users type in a lot of character returns as well as
> such symbols as " and commas.
>
> Is there a way, when creating the text file, to get rid of all these?
Many ways. Some of the most common ways:
http://php.net/str_replace
http://php.net/ereg_replace
http://php.net/preg_replace
http://php.net/trim
http://php.net/chop
(For even more ideas, review the entire list of string functions)
--
CC