Ver original$string = preg_match_all('#([a-z0-9\._-]+@[a-z0-9\._-]+)#is',$string,$emails);foreach ($emails[1] as $value){ echo $value."<br>";}