API Platform Conference 2026 - Lille (France) & Online

Locale::addLikelySubtags

locale_add_likely_subtags

(No version information available, might only be in Git)

Locale::addLikelySubtags -- locale_add_likely_subtagsAdd likely subtags to a locale

Descrizione

Stile orientato agli oggetti

public static function Locale::addLikelySubtags(string $locale): string|false

Stile procedurale

function locale_add_likely_subtags(string $locale): string|false

Expands a locale tag by adding likely subtags based on the ICU locale data. For example, en becomes en_Latn_US.

Elenco dei parametri

locale

The locale to expand.

Valori restituiti

Returns the locale with likely subtags added, or false on failure.

Errori/Eccezioni

Throws a ValueError when the locale argument contains null bytes.

Vedere anche:

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top