PHP Random Color


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. $random_color = '#'.base_convert(rand(0, 16777215), 10, 16);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.