Parse a string containing name and email

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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

John Smith<john.smith@xxxxxxxxxxxxxx>

I need to parse the string into two variables as such

$name = John Smith
$email = john.smith@xxxxxxxxxxxxxx

What would be the easiest way to do this?

Thanks. 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux