Locale
in package
FinalYes
Table of Contents
Constants
- STRUCTURE = '/^(?P<language>[a-z]{2})([-_](?P<script>[a-z]{4}))?([-_](?P<country>[a-z]{2}))?$/i'
- Language code: ISO-639 2 character, alpha.
Properties
- $formatter : NumberFormatter
Methods
- __construct() : mixed
- format() : string
Constants
STRUCTURE
Language code: ISO-639 2 character, alpha.
public
mixed
STRUCTURE
= '/^(?P<language>[a-z]{2})([-_](?P<script>[a-z]{4}))?([-_](?P<country>[a-z]{2}))?$/i'
Optional script code: ISO-15924 4 alpha. Optional country code: ISO-3166-1, 2 character alpha. Separated by underscores or dashes.
Properties
$formatter
private
NumberFormatter
$formatter
Methods
__construct()
public
__construct(string|null $locale, int $style) : mixed
Parameters
- $locale : string|null
- $style : int
format()
public
format([bool $stripRlm = true ]) : string
Parameters
- $stripRlm : bool = true