R: [PHP] CR and LF Filtering
| From: | (Delbono) | Date: | Sat, 16 Dec 2000 16:10:43 +0000 |
| Subject: | R: [PHP] CR and LF Filtering | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-30672@lists.php.net to get a copy of this message | ||
try this:
$string = str_replace("\n","", $string);
$string = str_replace("\r","", $string);
>I need to filter carriage returns and line feeds from a string. I've
>searched the string functions in the PHP Manual and nothing seems to do the
>job. I'm sure I'm missing something, though, and am asking this list for
>assistance.
>
>Thanks
>Don Smith
>mailto:don@newsvideo.com
>
>
>--
>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
>
>