Question about Trim

From: Date: Sun, 08 Dec 2002 06:28:13 +0000
Subject: Question about Trim
Groups: php.general 
Request: Send a blank email to php-general+get-127416@lists.php.net to get a copy of this message
Hey... I have a question about trim. I don't know if trim() is the right funtion to use, but here is my problem. I am recieving a textarea input from a form and writing it to a data file. I need to change any line breaks or (enter) if you will into a <br> or something else. When it's in my text file, it screws it up. Please, someone give me an idea of how to oversome this. I can't seem to make trim() work at all. It does remove a \n if you type that in, but won't actually remove an (enter). Thanx for your help in advance. -Dade __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com

« previous php.general (#127416) next »