Hi all,
I don't seem to be able to output arrays very well.
<?php
$html = implode('', file('http://www.example.com'));
preg_match_all("/href=\"(.*?)\"/", $html, $arr);
foreach ($arr as $value) {
echo "Value: $value<br />\n";
}
?>
Here I thought that all the links found in the site would be echoed. However, instead, "Array" is just echoed where each link should be.
Does anyone know whats wrong?
Thanks,
Mike 🙂