Re: [PHP] Question about Trim

2002-12-07 Thread Justin French
To convert \n's to \n's on any string, use nl2br(). To trim excess white space (\n, \r, [space] \t, etc) from both the beginning and end of a string, use trim(). Eg: This should echo: --- this is a string with an enter in the middle --- What do you actually want to do, and what's the problem?

[PHP] Question about Trim

2002-12-07 Thread Dade Register
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 or something else. When it's in my text file,