Show what you know! help


#1

$fav_people = $array();
array_push($fav_people, "Evan");
array_push($fav_people, "Lan");
array_push($fav_people, "Josh");
array_push($fav_people, "Adam");
array_push($fav_people, "Egor");

Guys , how to Sort the list and Randomly select a winner? please help!!

thanks


#2

With these multistep problems, you should break them down into smaller steps.

Don't try to just pop out the whole answer in one go.

I bet the sort() function that you just learned about will come in handy. See if you can get your list to sort and then move on to the next thing.