I can do this with numbers:
<?=number_format(mt_rand(0,1));?>
What I want to do is, instead of 0 or 1, echo the words firstclass or secondclass.
This is because I cannot use numbers as class identifiers in CSS.
Essentially, this is just for displaying random stuff within a list and prepending the class identifier with either firstclass or secondclass.
.firstclass {display:none;}
I am not ace with PHP, so I guess I need to set up an array, and somehow attribute:
0 = firstclass
1 = secondclass
within the array, so that I can get my little test script working.
Any suggestions?