Re: replacing Carriage Return
| From: | Kevin Stone | Date: | Tue, 11 Dec 2001 20:53:32 +0000 |
| Subject: | Re: replacing Carriage Return | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77348@lists.php.net to get a copy of this message | ||
Could be "\r"? I'm not sure about this becuase I haven't tried it. I know
that \r is used as the return character in other OSs.
-Kevin Stone
----- Original Message -----
From: "phantom" <phantom@phantomcougar.com>
To: <php-general@lists.php.net>
Sent: Tuesday, December 11, 2001 1:31 PM
Subject: [PHP] replacing Carriage Return
> I solicit information from a text field and save the data in mysql to be
> pulled out later and displayed as text on a webpage.
>
> However, Carrage Returns in the text field do not appear in the webpage
> text.
>
> With ereg_replace() I can replace the Carriage Returns with "\n", so
> what is this the character I need to find in the text field to replace?
> chr(13) ???
>
> ereg_replace("chr(13)", "\n", $TextFieldData) ????????
>
> Thanks.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>