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
Try this:
$username = substr($username, 0, strpos($username, '@'));