作者 邓超

x

... ... @@ -90,7 +90,7 @@ class MailFun {
*/
public static function toOrFrom($str){
$strs = explode(',',$str);
$strs = explode(',',$str);print_r($strs);
foreach ($strs as $k=>$s){
preg_match('/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/',$s,$email);
if(empty($email[0])){
... ... @@ -118,7 +118,7 @@ class MailFun {
}
return $strs;
return array_values($strs);
}
... ...