php - Images counter on a page
one text
Solution:
Try this:
<?PHP
$code= file_get_contents($url); //this line is getting HTML code from the website
echo substr_count($code, '<img');
?>
Sourceone text
Try this:
<?PHP
$code= file_get_contents($url); //this line is getting HTML code from the website
echo substr_count($code, '<img');
?>
Source