• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PHP experts, please help! Email address parsing

hoihtah

Diamond Member
hi, i'm trying to parse email address with php.

say i have
$email="angrymod@anandtech.com"

how can i get that into
$email1="angrymod"
$email2="anandtech.com"

i'm a newbie... so please excuse the simplicity of this question. thanx in advance.
 
Booyah!

So, something like $emailparts=split('@',$email); would give you an array called $emailparts, composed of two items. $emailparts[0]=angrymod and $emailparts[1]=anandtech.com
 
Back
Top