Hi want to change the displayed username like abcd@somedomain.com to only abcd. so for this i should clip the part starting from @.
I can do this very easily through
Use strtok().
$username = strtok($email, '@');
CodePad.