Page 1 of 1

Simple String Parse {RESOLVED}

Posted: Thu Dec 30, 2004 1:17 pm
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

Posted: Thu Dec 30, 2004 1:39 pm
by rehfeld
explode()

Posted: Thu Dec 30, 2004 4:03 pm
by feyd
just to be safe, I'd suggest using [php_man]preg_split()[/php_man] instead of [php_man]explode()[/php_man]