作者 邓超

x

@@ -95,7 +95,7 @@ class MailFun { @@ -95,7 +95,7 @@ class MailFun {
95 */ 95 */
96 public static function toOrFrom($str){ 96 public static function toOrFrom($str){
97 97
98 - $strs = explode(',',$str);print_r($strs); 98 + $strs = explode(',',$str);
99 foreach ($strs as $k=>$s){ 99 foreach ($strs as $k=>$s){
100 preg_match('/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/',$s,$email); 100 preg_match('/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/',$s,$email);
101 if(empty($email[0])){ 101 if(empty($email[0])){