This is what i got


this is what i got, rand() has to provided the ramdom name
// Create an array and push on the names
// of your closest family and friends
$family = array();
array_push($family, " alejandro ", "david ", "margarita ", "anthony ", "sandra ", "michelle ", "samuel ");
print count($family);

// Sort the list
print join(", ", $family);

// Randomly select a winner!

// Print the winner's name in ALL CAPS
print strtoupper($family{rand(0,8)});


Functions Part 1 - Exercise 8

A few more ideas for you:

Why don't you save that number and use it over here instead of hard coding an 8:

You can see that the line above is doing nothing useful for you - yes?