I am pulling email values out of a database and the format is as follows:

John Smith<john.sm...@somedomain.com>

I need to parse the string into two variables as such

$name = John Smith
$email = john.sm...@somedomain.com

What would be the easiest way to do this?


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to