Reply to Re: Get all the email addresses from a text file

Your name:

Reply:


Posted by Nico on 03/22/06 20:42

"Geoff Berrow" <blthecat@ckdog.co.uk> a ιcrit dans le message de news:
c063225l4v98ubvmib71d2mg1pk4d9os10@4ax.com...
> Message-ID: <44217e7e$0$471$626a54ce@news.free.fr> from Nico contained
> the following:
>
>>
>>I have a .txt file with a lot of text mixed with some email addresses. I
>>would like to get all the email addresses in a $mails[] variable. Does
>>anyone know how to do this in php.
>
> Yes
>>
>>Thanks a lot for your help,
>
> You're welcome. :-)
>
> Oh, you'd like to know ?
>
> Use implode() to get all the words in the text into an array. Then loop
> through the array checking each word with strpos() to see if it contains
> an @symbol. If it does, assign it to a new array. The new array will
> contain everything with a @ symbol, probably mostly email addresses.



Thank you very mch, but I have no idea how to use arrays, I am a begginer,
could you please write the code for me ? I'm sorry/

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация