This is how I do in javascript: randNumber = new Array(); for (p = 0; p < 10; p++) { randNumber[p] = Math.floor(Math.random()*7); } weekday = new Array("monday","tuesday","wednesday","thursday","friday","saturday","sunday" ) randDay1 = weekday[randNumber[0]] randDay2 = weekday[randNumber[1]] ....
I would like to achieve the same goal using php but I cannot get it to work. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php