That rather than having 6 colors chosen randomly in the code below:
<?php
function cssarray() {
// Create a new array
$color[1] = "blue";
$color[2] = "purple";
$color[3] = "green";
$color[4] = "grey";
$color[5] = "lightgreen";
$color[6] = "pink";
// total number of css files
$total = "6";
$start = "1";
$num = mt_rand($start, $total);
$colorfile = $color[$num];
echo "$color[$num]";
}
?>
Is there a way I could just have the color come out numerically rather than randomly as shown in the code above?
Thanks!



