<?php $img = imagecreatefromgif('https://www.tutorialspoint.com/images/html.gif'); echo 'Number of Colors = ' . imagecolorstotal($img); imagedestroy($img); ?>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more