On Saturday, February 28, 2004, at 04:09 PM, Karl Timmermann wrote:

Does anyone have some PHP code to remove incorrect carriage returns?

Karl,


It depends on your definition of "incorrect"... if you mean strip ALL carriage returns from the text, that's easy.

<?php
$str = str_replace(array("\n","\r"),' ',$str);
?>

So, what's your definition of "incorrect"?

---
Justin French
http://indent.com.au

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to