Easy Tutorial
❮ Php Get_Resource_Type Function Func String Levenshtein ❯

PHP nl_langinfo() Function



Definition and Usage

The nl_langinfo() function returns the specified locale information.

Note: This function does not work on Windows platforms.

Tip: Unlike the localeconv() function, which returns all locale formatting information, nl_langinfo() returns specified information.


Syntax

Parameter Description
element Required. Specifies which element to return. Must be one of the following elements: Time and Calendar: ABDAY_(1-7) - Represents the abbreviated name of each day of the week<br> DAY_(1-7) - Represents the name of each day of the week (DAY_1 = Sunday)<br> ABMON_(1-12) - Represents the abbreviated name of each month of the year<br> MON_(1-12) - Represents the name of each month of the year<br> AM_STR - Represents the string for morning<br> PM_STR - Represents the string for afternoon<br> D_T_FMT - Date and time format string usable in strftime()<br> D_FMT - Date format string usable in strftime()<br> T_FMT - Time format string usable in strftime()<br> T_FMT_AMPM - 12-hour time format string with AM/PM usable in strftime()<br> ERA - Era conversion<br> ERA_YEAR - Era conversion format in years<br> ERA_D_T_FMT - Era conversion format in date and time (string usable in strftime())<br> ERA_D_FMT - Era conversion format in date (string usable in strftime())<br> ERA_T_FMT - Era conversion format in time (string usable in strftime()) Currency Category: INT_CURR_SYMBOL - International currency symbol (e.g., USD)<br> CURRENCY_SYMBOL - Local currency symbol (e.g., $)<br> CRNCYSTR - Similar to CURRENCY_SYMBOL<br> MON_DECIMAL_POINT - Monetary decimal point character<br> MON_THOUSANDS_SEP - Monetary thousands separator<br> POSITIVE_SIGN - Sign for positive values<br> NEGATIVE_SIGN - Sign for negative values<br> MON_GROUPING - Array showing how monetary digits are grouped (e.g., 1,000,000)<br> INT_FRAC_DIGITS - International fractional digits<br> FRAC_DIGITS - Local fractional digits<br> P_CS_PRECEDES - True (1) if the currency symbol precedes a positive value, False (0) if it follows<br> P_SEP_BY_SPACE - True (1) if a space separates the currency symbol from a positive value, False (0) if not<br> N_CS_PRECEDES - True (1) if the currency symbol precedes a negative value, False (0) if it follows<br> N_SEP_BY_SPACE - True (1) if a space separates the currency symbol from a negative value, False (0) if not<br> P_SIGN_POSN - Formatting options, possible return values:<br>0 - Quantity and currency symbol in parentheses<br> 1 - Plus sign before quantity and currency symbol<br> 2 - Plus sign after quantity and currency symbol<br> 3 - Plus sign directly before currency symbol<br> 4 - Plus sign directly after currency symbol<br> N_SIGN_POSN - Formatting options, possible return values:<br>0 - Quantity and currency symbol in parentheses<br> 1 - Minus sign before quantity and currency symbol<br> 2 - Minus sign after quantity and currency symbol<br> 3 - Minus sign directly before currency symbol<br> 4 - Minus sign directly after currency symbol Number Category: DECIMAL_POINT - Decimal point character<br> RADIXCHAR - Similar to DECIMAL_POINT<br> THOUSANDS_SEP - Thousands separator character<br> THOUSEP - Similar to THOUSANDS_SEP<br> GROUPING - Array showing how digits are grouped (e.g., 1,000,000) Communication Category: YESEXPR - Regex string matching 'yes' input<br> NOEXPR - Regex string matching 'no' input<br> YESSTR - Output string for 'yes'<br> NOSTR - Output string for 'no' Code Set Category: CODESET - Returns a string with the character encoding name.

Technical Details

Return Value: Returns the specified information if successful, FALSE if failed.
PHP Version: 4.1.0+
--- ---

❮ Php Get_Resource_Type Function Func String Levenshtein ❯