All pastes #93557 Raw Edit

hex code with loop

public php v1 · immutable
#93557 ·published 2006-07-20 15:40 UTC
rendered paste body
<?php$hex = array ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f');for ($i = 0; $i < 6; $i++){$hexout .= $hex[rand(0, 15)];}print "<span style=\"background-color:#$hexout\">This is $hexout.</span>";