preg_match_all('/<img\s+[^>]+>/i',$html, $result);
$matches = array_unique($result[0]);
- print_r($result);
- print_r($result[0]);
- print_r($matches);exit;
+
foreach($matches as $img) {
$imatch = array();
preg_match_all('/(width|height|src)="([^"]*)"/i',$img, $imatch);