Now, the name array has all matches with the keyword that the user search. Echo out the name with for loop.
for($i=0;$i<count($name);$i++){
echo $name[$i] . '<br />';
}
You can also use 'foreach' method.
foreach($name as $user) {
echo $user . '<br />';
}
Hope this help.