I\'m working on a project where I need to generate an undefined number of random, hexadecimal color codes…how would I go about building such a function in PHP?
$color = sprintf("#%06x",rand(0,16777215));