content);
foreach ($img_array as $img) {
echo '
'.$img[0].'';
}
/*
$doc = new DOMDocument();
$doc->loadHTML($twt->content);
$img_array = $doc->getElementsByTagName('img');
foreach ($img_array as $img) {
$url = $img->getAttribute('src');
$alt = $img->getAttribute('alt');
//echo "
Title:" . $img->getAttribute('title');
echo "
})
";
}
/*
foreach ($img_array as $img) {
echo $img[0];
$extension = pathinfo($img, PATHINFO_EXTENSION);
if (in_array(strtolower($extension), $allowedExtensions)) {
$imageURL = $galleryDir . $img;
$thumbURL = $thumbDir . $img;
if (!file_exists($thumbURL)) {
createThumbnail($imageURL, $thumbURL, 200); // The thumbnail will have a height of 200 pixels.
}
echo '
';
}
}
*/
?>