$tmp_firstname = $firstname;
shuffle($tmp_firstname);
array_splice($tmp_firstname, 5);
$tmp_lastname = $lastname;
shuffle($tmp_lastname);
array_splice($tmp_lastname, 5);
foreach($tmp_firstname as $key => $str) {
$tmp_firstname[$key] .= ' '.$tmp_lastname[$key];
}
$name=implode(', ', $tmp_firstname).'.';