note 25247 added to function.preg-match-all
| From: | johnpinochet***at***hotmail dot com at rack1 dot php dot net | Date: | Mon, 16 Sep 2002 14:24:46 +0000 |
| Subject: | note 25247 added to function.preg-match-all | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36753@lists.php.net to get a copy of this message | ||
<?php
//get a web page into a string
$fcontents = implode ('', file ('http://www.cnn.com/'));
preg_match_all ("/cnn.com/",$fcontents,$out, PREG_SET_ORDER);
print $out[0];
print $out[1];
print $out[2];
?>
The above does not work. Pretty strange as it is simply a cut and paste of one of the above
examples. One would expect the results to be
cnn.comcnn.comcnn.com
The results are:
ArrayArrayArray
Doesn't make sense.
--
http://www.php.net/manual/en/function.preg-match-all.php
http://master.php.net/manage/user-notes.php?action=edit+25247
http://master.php.net/manage/user-notes.php?action=delete+25247
http://master.php.net/manage/user-notes.php?action=reject+25247