IntlListFormatter
final class IntlListFormatter (View source)
Constants
| TYPE_AND |
|
| TYPE_OR |
|
| TYPE_UNITS |
|
| WIDTH_WIDE |
|
| WIDTH_SHORT |
|
| WIDTH_NARROW |
|
Methods
__construct(string $locale, int $type = IntlListFormatter::TYPE_AND, int $width = IntlListFormatter::WIDTH_WIDE)
Creates a new IntlListFormatter instance
string|false
format(array $strings)
Format a list of items
int
getErrorCode()
No description
string
getErrorMessage()
No description
Details
__construct(string $locale, int $type = IntlListFormatter::TYPE_AND, int $width = IntlListFormatter::WIDTH_WIDE)
Creates a new IntlListFormatter instance
Creates a new IntlListFormatter instance for the given locale.
string|false
format(array $strings)
Format a list of items
Formats a list of items as a locale-appropriate string.
int
getErrorCode()
No description
string
getErrorMessage()
No description