This merges two arrays, then will place them alphabetical order, by the key named ‘name’
$result2 = array_merge($resultb, $resulta);
foreach ($result2 as $key => $row)
{
$new[$key] = $row['name'];
}
array_multisort($new, SORT_ASC, $result2);











