Page 1 of 1

New to PHP, need help

Posted: Fri Mar 24, 2006 11:11 am
by oceandive
Im trying to run a simple script that will take spaces out between text. I am trying to convert it from one text area to another.

Example:

This would be where some text is.

This is where more text is.

And again more text.

output

This would be where some text is.
This is where more text is.
And again more text.


I don't know where to start as far as writing something to take embeded breaks out. I am assuming something with IF statements, but how to word it I am not sure.

If you can set me in the write direction that would be greatly appreciated.

Posted: Fri Mar 24, 2006 4:10 pm
by oceandive
Glad to see the reads and no responses. poop on all you. I figured it out on my own.

Posted: Fri Mar 24, 2006 4:12 pm
by hawleyjr
WOW, welcome to the forum... :roll: Topic Locked~!