In PHP, how do I extract multiple e-mail addresses from a block of text and put them into an array?

前端 未结 7 2181
时光说笑
时光说笑 2020-11-30 03:19

I have a block of text from which I want to extract the valid e-mail addresses and put them into an array. So far I have...

   $string = file_get_contents(\         


        
7条回答
  •  忘掉有多难
    2020-11-30 03:45

    It worked better for me:

    
    

    Some of the others didn't accept domains like: name@example.com.sv

    I found it on: http://snipplr.com/view/63938/

提交回复
热议问题