<?php
$str = "xyz@gmail.com";
$username = strstr($str, '@', true);
echo $username;
?>
I want to remove sender name before @ tag and output should be @gmail.com. Now, It shows me xyz output which I don't want. So, How can I do this? Please help me.
I want to output @gmail.com.