public static sentence ( array $words, string $twoWordsConnector = ' and ', string $lastWordConnector = null, string $connector = ', ' ) : string | ||
$words | array | the words to be converted into an string |
$twoWordsConnector | string | the string connecting words when there are only two |
$lastWordConnector | string | the string connecting the last two words. If this is null, it will take the value of `$twoWordsConnector`. |
$connector | string | the string connecting words other than those connected by $lastWordConnector and $twoWordsConnector |
return | string | the generated sentence |