Gen. partnerAlgotech

PHP funkce setlocale()

Set locale information

|
11. září 2019

Dostupnost ve verzích: PHP 4.0

Set locale information

Parametry

Parametr Datový typ Výchozí hodnota Poznámka
$category int není

category is a named constant specifying the category of the functions affected by the locale setting:

$locale string není If locale is &null; or the empty string "", the locale names will be set from the values of environment variables with the same names as the above categories, or from "LANG".
$_ string null

string

the new current locale, or false if the locale functionality is not implemented on your platform, the specified locale does not exist or the category name is invalid.

An invalid category name also causes a warning message. Category/locale names can be found in RFC 1766 and ISO 639. Different systems have different naming schemes for locales.

The return value of setlocale depends on the system that PHP is running. It returns exactly what the system setlocale function returns.

Další zdroje

Oficiální dokumentace funkce setlocale

Načítání komentářů...

Zůstaňte v obraze

Přihlaste se k odběru našeho newsletteru a získejte nejnovější informace o kybernetické bezpečnosti přímo do vaší e-mailové schránky.

Vaše údaje jsou v bezpečí. Newsletter můžete kdykoliv odhlásit.