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.
| Member | Signature |
|---|---|
join | join(array<array<string>> $lists, string $locale, ?{ type?: Type, width?: Width } $options = null): array<string> |
Enums
Type { And, Or, Unit }The words thatListFormat::joinuses to join the items of a list.Andwrites "tea, coffee, and water" in English. This is the default.Orwrites "tea, coffee, or water".Unitjoins the parts of one amount, such as "5 feet, 11 inches".
