Php getgmail name

$string_array = explode("@",$string);
echo $string_array[0];
Borma