Probally a really simple question on search and replace

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
ryan031385
Forum Newbie
Posts: 2
Joined: Fri Aug 15, 2003 4:25 pm

Probally a really simple question on search and replace

Post by ryan031385 »

I have a string in a variable it is a birthdate in the form of mm/dd/yy what kind of function would I use and how to put this in an array or 3 seperate variables saying hey before the first / i want as one varible , berfoer the second i want as another varible and after the last / i was the third variable or is there an easier way to do this?
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

explode will do it for you.

Cheers,
Scorphus.
Post Reply