Re: [PHP] Remove \n from text

2002-08-20 Thread Jason Wong

On Tuesday 20 August 2002 23:00, Erich Kolb wrote:
 How can I remove all \n and \r from a txt file?

file(), str_replace(), fopen(), fwrite(), fclose(), add seasoning to taste.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Perfection is acheived only on the point of collapse.
- C. N. Parkinson
*/


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




Re: [PHP] Remove \n from text

2002-08-20 Thread Justin French

$str = str_replace('\r',$str)
$str = str_replace('\n',$str)

Justin French


on 21/08/02 1:00 AM, Erich Kolb ([EMAIL PROTECTED]) wrote:

 How can I remove all \n and \r from a txt file?
 
 


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