Simple String Parse {RESOLVED}

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
sell-traffic
Forum Commoner
Posts: 26
Joined: Thu Aug 05, 2004 9:35 pm

Simple String Parse {RESOLVED}

Post by sell-traffic »

Hi Everyone, Happy Holidays,

Simple php parsing question. I have a form email that asks for a list of email address's, seperated by comma's, as well as a number of other fields. This is posted to another page as 1 string, seperated by comma's.

I need to take this string, and divide it into seperate values in an array emails[]. How do I do this?

This way I can loop the array and send the emails.

Thanks,

Josh
Last edited by sell-traffic on Thu Dec 30, 2004 4:06 pm, edited 1 time in total.
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

explode()
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

just to be safe, I'd suggest using [php_man]preg_split()[/php_man] instead of [php_man]explode()[/php_man]
Post Reply