<?php
$tests = [
'' => [],
'one' => ['one'],
'one and two' => ['one', 'two'],
'one, two and three' => ['one', 'two', 'three'],
'one, two, three and four' => ['one', 'two', 'three', 'four'],
'one, two, three, four and five' => ['one', 'two', 'three', 'four', 'five'],
];
function mickmackusa1(array $words, string $separator = ', ', string $conjunction = ' and '): string {
return collect($words)->join($separator, $conjunction);
}