Locale::getPrimaryLanguage()

static string|null getPrimaryLanguage(string $locale)

Not supported. Returns the primary language for the locale.

Parameters

string $locale The locale code to extract the language code from

Return Value

string|null The extracted language code or null in case of error

Exceptions

MethodNotImplementedException

See also

http://www.php.net/manual/en/locale.getprimarylanguage.php
doc_Symfony
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.