$a='afdda@fvfdaqq5afavt';
$tmp1=strpos($a,'f');
while(substr($a,$tmp1,1)=='f'){
$i=$tmp1;
++$tmp1;
while(substr($a,$tmp1,1)!='f'&&substr($a,$tmp1,1)){
if(preg_match('/[^a-z]{1}/',substr($a,$tmp1,1))){
$tmp1=strpos($a,'f',$tmp1);
break;
}
echo substr($a,$i,$tmp1-$i+1).'<br/>';
++$tmp1;
}
}