Return to Snippet

Revision: 41758
at February 23, 2011 03:27 by ozke


Initial Code
$random_color = '#'.base_convert(rand(0, 16777215), 10, 16);

Initial URL

                                

Initial Description
Ported to PHP from here:
http://snipplr.com/view/48067/ (original: http://paulirish.com/2009/random-hex-color-code-snippets/)

Initial Title
PHP Random Color

Initial Tags
php, color

Initial Language
PHP