Here is what I think you are asking for.
<?php
// Create an array and push on the names
// of your closest family and friends
$closefriends = array () ;
array_push($closefriends,"Cessie","Lulu","Tutur");
// Sort the list
sort( $closefriends );
// Randomly select a winner!
$rand_friend = array_rand($closefriends, 1);
// Print the winner's name in ALL CAPS
$str = strtoupper($closefriends[$rand_friend]);
echo $str;
?>
At the start of the code you are creating an array to store you values, example: "Cessie", "Lulu","tutur".
Example: $YourarrayName = array();
then you have the array_push() treats array as a stack, and pushes the passed variables onto the end of array.This also increases the length of the array.
Example: array_push('the array you want to add to', the values you wanted added, "value", "value")
Sorting the array, this is done with the sort() function. This function sorts an array, where the elements will be arranged from lowest to highest when this function has completed.
Example sort('name_of_array_to_be_sorted');
To randomly select and element from the sorted array you use the array_rand() function.This picks one or more random entries out of an array, and returns the key (or keys) of the random entries. then you just assigned the value that was picked at random to a variable.
Example: $yourVariable = array_rand('YourArrayName', 'the number of random items you want');
Then to the last part of all this you are asked to print the winner to all upper case letter. This is just a simple pass to the strtoupper() function. Really all it does is returns a string, with all alphabetic characters converted to uppercase.
then you just use and echo statement to print the final value out.