Skip to content

Novis\Intl\ListFormat

Joins the items of a list with the words a language uses, such as "Shop, Blog, and Wiki". The method takes many lists and a locale tag, such as "de", and joins them all in one call.

Members

1 member.

MemberSignature
joinjoin(array<array<string>> $lists, string $locale, ?{ type?: Type, width?: Width } $options = null): array<string>

Enums

  • Type { And, Or, Unit }The words that ListFormat::join uses to join the items of a list. And writes "tea, coffee, and water" in English. This is the default. Or writes "tea, coffee, or water". Unit joins the parts of one amount, such as "5 feet, 11 inches".