Returns a correctly ordered and delimited locale ID the keys identify the
particular locale ID subtags, and the values are the associated subtag
values.
Parameters
subtags
An array containing a list of key-value pairs, where the keys identify
the particular locale ID subtags, and the values are the associated
subtag values.
Note:
The 'variant' and 'private' subtags can take maximum 15 values
whereas 'extlang' can take maximum 3 values. For instance, variants are allowed
with the suffix ranging from 0-14. Hence the keys for the input array
can be variant0, variant1, …,variant14. In the returned locale id,
the subtag is ordered by suffix resulting in variant0 followed by
variant1 followed by variant2 and so on.
Alternatively, the 'variant', 'private' and 'extlang' values can be specified
as array under specific key (e.g. 'variant').
In this case no limits on the number of recognized subtags apply.
Return Values
The corresponding locale identifier, or false when subtags is empty.
If subtags are given as separate keys with numeric suffix,
unsupported keys are silently ignored (in this case 'extlang3'),
and ordered in the result by numeric suffix.
There are no limits, if subtags are given as array; the order is as given.