Code: Alles auswählen
$regEx = "/(src)(=)(['\"]?)([^\"']*)(['\"]?)/i";
$img = array ();
preg_match($regEx, $match[0], $img);
$img_src = preg_split("/\//", $img[0]);
Code: Alles auswählen
$regEx = "/(alt)(=)(['\"]?)([^\"']*)(['\"]?)/i";
$img = array ();
if (preg_match($regEx, $match[0], $img) > 0) {
$img_alt = preg_split("/\//", $img[0]);
} else {
$img_alt = "";
}
$regEx = "/(title)(=)(['\"]?)([^\"']*)(['\"]?)/i";
$img = array ();
if (preg_match($regEx, $match[0], $img) > 0) {
$img_title = preg_split("/\//", $img[0]);
} else {
$img_title = "";
}
Knapp darunter unter diese Zeilen:
Code: Alles auswählen
$aData[$i]["i".$k]["Width"] = $width;
$aData[$i]["i".$k]["Height"] = $height;
Code: Alles auswählen
$aData[$i]["i".$k]["Alt"] = $img_alt;
$aData[$i]["i".$k]["Title"] = $img_title;
Gruß
HerrB