This is driving me mad!
// Find Images
preg_match_all("/<img .*?(?=src)src=\"([^\"]+)\"/si", $html, $images);
foreach ($images as $image) {
if (preg_match('/pics1.pof.com\/thumbnails/', $image)) {
print_r($image);
}
}
Warning: preg_match() expects parameter 2 to be string, array given
According to PHP $image is an array. WTF!