Parse a string containing name and email
[email protected] ("Don")
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am pulling email values out of a database and the format is as follows: John Smith<[email protected]> I need to parse the string into two variables as such $name = John Smith $email = [email protected] What would be the easiest way to do this? Thanks.