generate random unique hex color code using PHP
generate random unique hex color code using PHP echo ‘#’ . substr(str_shuffle(‘ABCDEF0123456789’), 0, 6); Generating random unique hex color code using PHP md5() function In this post, we are going to see how to generate random CSS hex color codes using PHP md5() function. The PHP md5() function calculates the MD5 hash of a string. …