This is what i got


#1

this is what i got, rand() has to provided the ramdom name
<?php
// 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
sort($family);
print join(", ", $family);


// Randomly select a winner!
rand();


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

?>

Functions Part 1 - Exercise 8
#2

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?