hi
Bit of a newbie question i'm afraid.... I'm reading an uploaded file into an array, which works ok, but i then want to shuffle the array. i've checked php manual but i'm a little confused. this is what i have currently, but it doesn't work. any help appreciated.
basically i want $words2 to be exactly the same as $words1 but the order within the array shuffled.
$words = file("$userfile");
srand ((float)microtime()*1000000);
$words2 = shuffle($words);
any ideas where i'm going wrong? thanks in advance.
roland