New to PHP, need help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
oceandive
Forum Newbie
Posts: 2
Joined: Fri Mar 24, 2006 11:05 am

New to PHP, need help

Post 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.
oceandive
Forum Newbie
Posts: 2
Joined: Fri Mar 24, 2006 11:05 am

Post by oceandive »

Glad to see the reads and no responses. poop on all you. I figured it out on my own.
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

WOW, welcome to the forum... :roll: Topic Locked~!
Locked