PHP Tip: Random color
December 13th, 2010 by Phong Vu    

This function return random color hex value:

function random_color(){
    $c = '';
        $c .= sprintf("%02X", mt_rand(0, 255));
    return $c;

You might also be interested in:

Share your thought:

Web design by Phong Vu - All content posted on here is copyright by Phong Vu and its rightful owner.