What's the easiest way to do this?

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

Post Reply
Steve3
Forum Newbie
Posts: 2
Joined: Mon Apr 05, 2004 10:23 am

What's the easiest way to do this?

Post by Steve3 »

I have a string containing "Username: Steve Usercomment: Hello"

I want to have Steve moved to a new string variable and Hello moved to a new string variable.

Obviously I want it to work with things other than Steve and Hello. Sorry if this is a complete newbie question, and thanks in advance.
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

Steve3
Forum Newbie
Posts: 2
Joined: Mon Apr 05, 2004 10:23 am

Post by Steve3 »

thank you sir!
Post Reply