PHP getgmail Name

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