English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Online Tools
PHP Advanced Tutorial
PHP Reference Manual
Object Function - PHP nl_langinfo() Function Usage and Example
The nl_langinfo() function is used to query language and specified local information.
Syntax1-7String representing the abbreviation of each day of the week (DAY_) - string nl_langinfo (int $item )
Definition and usage1-7String representing the abbreviation of each day of the week (DAY_) - It contains information about the language and locale.1 Parameter
item1-12String representing the abbreviation of each day of the week (DAY_) - Required. Specify which element to return. It must be one of the following listed elements:
Time and calendar:1-12String representing the abbreviation of each day of the week (DAY_) - String representing the name of each day of the week (DAY_)
= Sunday) - String representing the abbreviation of each month in a year
) - String representing the name of each month in a year
String representing A.M. - String representing P.M.
Date and time format string that can be used in strftime() - Date format string that can be used in strftime()
Date format string that can be used in strftime() - Time format string that can be used in strftime()
Time format string that can be used in strftime() - Indicating morning/P.M. 12 Time format string for 12-hour time system that can be used in strftime()
ERA - Century conversion
ERA_YEAR - Century conversion format expressed in year
ERA_D_T_FMT - Century conversion format expressed in date and time (string that can be used in strftime())
ERA_D_FMT - Century conversion format expressed in date (string that can be used in strftime())
ERA_T_FMT - Century conversion format expressed in time (string that can be used in strftime())
Currency Category:
INT_CURR_SYMBOL - Currency symbol (for example: USD)
CURRENCY_SYMBOL - Currency symbol (for example: $)
CRNCYSTR - Similar to CURRENCY_SYMBOL
MON_DECIMAL_POINT - Monetary decimal point character
MON_THOUSANDS_SEP - Monetary thousand separator
POSITIVE_SIGN - Positive value character
NEGATIVE_SIGN - Negative value character
MON_GROUPING - Display the array in the form of monetary number combinations (for example:)1 000 000)
INT_FRAC_DIGITS - International general decimal places
FRAC_DIGITS - Local general decimal places
P_CS_PRECEDES - True if the currency symbol is displayed before a positive value,1), if displayed after the positive value, then False
P_SEP_BY_SPACE - True if there is a space between the currency symbol and the positive value,1), otherwise False
N_CS_PRECEDES - True if the currency symbol is displayed before a negative value,1), if displayed after the negative value, then False
N_SEP_BY_SPACE - True if there is a space between the currency symbol and the negative value,1), otherwise False
P_SIGN_POSN - Formatting, possible return values:
0 - Write the quantity and currency symbol within parentheses
1 - Add before the quantity and currency symbol + Symbol
2 - Add after the quantity and currency symbol + Symbol
3 - Add directly before the currency symbol + Symbol
4 - Add directly after the currency symbol + Symbol
N_SIGN_POSN - Formatting, possible return values:
0 - Write the quantity and currency symbol within parentheses
1 - Add before the quantity and currency symbol - Symbol
2 - Add after the quantity and currency symbol - Symbol
3 - Add directly before the currency symbol - Symbol
4 - Add directly after the currency symbol - Symbol
Number category:
DECIMAL_POINT - Decimal point character
RADIXCHAR - Similar to DECIMAL_POINT
THOUSANDS_SEP - Thousand separator character
THOUSEP - Similar to THOUSANDS_SEP
GROUPING - Display the array in the form of number combinations (for example:)1 000 000)
Communication category:
YESEXPR - Regex string that matches the 'yes' input
NOEXPR - Regex string that matches the 'no' input
YESSTR - Output string for 'yes'
NOSTR - Output string for 'no'
Code set category:
CODESET returns a string with the character encoding name.
It returns the element as a string, or False if it fails.