// 1.
$email = [];
$email[] = 'hello world !';
$email[] = 'what are you doing?';
//mail('my@126.com',...$email);

//2
function addAll(...$num){
return array_sum($num);
}

echo addAll(1,2,3,4,5,6,7,8,9);