Posted By

ozke on 02/23/11


Tagged

php hex random String color


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

ozke
uberdragon
robotici
tux-world


PHP Random Color


 / Published in: PHP
 

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

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

Report this snippet  

You need to login to post a comment.