Small script to extract the images from a text or HTML.
$html=file_get_contents("https://garridodiaz.com");
$imgsrc_regex = '!http://.+.(?:jpe?g|gif|png)!Ui';
preg_match($imgsrc_regex, $html, $matches);
print_r ($matches);
Small script to extract the images from a text or HTML.
$html=file_get_contents("https://garridodiaz.com");
$imgsrc_regex = '!http://.+.(?:jpe?g|gif|png)!Ui';
preg_match($imgsrc_regex, $html, $matches);
print_r ($matches);