Convert Hex to RGB Color using PHP September 7, 2020 PHP 0 Comments 636 Views sscanf function <?php $hexColor = '#8060c2'; [$r, $g, $b] = sscanf($hexColor, '#%02x%02x%02x'); echo $r.','.$g.','.$b;
Leave a Comment
Cancel reply