Hallo!
ich verstehe die Fehlermeldung
"Warning: preg_match_all() [function.preg-match-all]:
Unknown modifier ']'"
nicht ganz. Was mache ich falsch?
PHP-Code:
print_r(get_img("http://www.phpfriend.de");
function get_img($url) {
$preg =
"<img[^>]* src=\"([^\"]*)\"[^>]*>";
preg_match_all(trim($preg),
file_get_contents($url),
$out);
$keys = $out[1];
$values = $out[1];
array_walk($values, 'remove_html');
return (array_combine($keys, $values));
}