Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.www.php > #21238
| From | Alessandro Pellizzari <shuriken@amiran.it> |
|---|---|
| Newsgroups | it.comp.www.php |
| Subject | Re: Ricerca email |
| Date | 2016-10-26 15:16 +0100 |
| Message-ID | <e7bs6nFfcf6U1@mid.individual.net> (permalink) |
| References | <2016102507505622013@mynewsgate.net> <s3fv0chn5o7ch411uute9l9amq310mn9uk@L.Serni> <2016102607021522013@mynewsgate.net> <6o911chgcap2d952aq95pfttt9v20dvn6o@L.Serni> <2016102613230722013@mynewsgate.net> |
On 26/10/2016 14:23, infoannu wrote:
> function leggi_codice($sito) {
> $lines = file($sito);
> $string='';
> foreach ($lines as $line_num => $line) {
> $string .= $line;
> }
> preg_match_all("/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i", $string, $matches);
e usi /i non ti serve controllare le maiuscole.
> return $matches[0];
Fai un print_r di $matches qui per vedere cosa ti torna nell'array.
Io ho sempre avuto problemi a capire come costruisca l'array dei
risultati, quindi uso i named matches ogni volta che posso.
Bye.
Back to it.comp.www.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Ricerca email "infoannu" <22013invalid@mynewsgate.net> - 2016-10-25 07:50 +0000
Re: Ricerca email Leonardo Serni <lserni@gmail.com> - 2016-10-25 22:30 +0200
Re: Ricerca email "infoannu" <22013invalid@mynewsgate.net> - 2016-10-26 07:02 +0000
Re: Ricerca email Leonardo Serni <lserni@gmail.com> - 2016-10-26 14:55 +0200
Re: Ricerca email "infoannu" <22013invalid@mynewsgate.net> - 2016-10-26 13:23 +0000
Re: Ricerca email Alessandro Pellizzari <shuriken@amiran.it> - 2016-10-26 15:16 +0100
Re: Ricerca email Leonardo Serni <lserni@gmail.com> - 2016-10-26 19:10 +0200
Re: Ricerca email RedWiz <redwiz@inwind.it> - 2016-10-26 17:11 +0000
Re: Ricerca email "infoannu" <22013invalid@mynewsgate.net> - 2016-10-27 07:13 +0000
Re: Ricerca email Alessandro Pellizzari <shuriken@amiran.it> - 2016-10-27 10:28 +0100
Re: Ricerca email Leonardo Serni <lserni@gmail.com> - 2016-10-27 14:26 +0200
Re: Ricerca email M_M <spam@the.hell> - 2016-10-26 17:29 +0200
Re: Ricerca email M_M <spam@the.hell> - 2016-10-26 17:34 +0200
Re: Ricerca email "infoannu" <22013invalid@mynewsgate.net> - 2016-10-27 12:44 +0000
csiph-web