What's the problem


#1

why this code isn't giving propper result

code:

<?php
// Create an array and push on the names
// of your closest family and friends
$a = array();
array_push($a , "aba");
array_push($a , "bdf");
array_push($a , "ckh");
array_push($a , "dlo");
$b = count ( $a );
echo join (",",$a);
sort( $a );
$c = array_rand($a ,1);

$e= strtoupper($c);
echo "<p>$a</p>";

// Sort the list

// Randomly select a winner!

// Print the winner's name in ALL CAPS

?>


#2

@rubyninja60378,
You will want to use $e
as $a stands for the complete-array...

echo "<p>$e</p>";