string nl_langinfo( int $element )
(PHP 4 >= 4.1.0, PHP 5)
| $element | A code indicating which local element to retrieve. |
|---|---|
| RETURNS | A local element using the currently defined locale setting. |
Retrieves locale information for the currently set locale. Many different locale information may be retrieved from the system as shown below.
| ABDAY_1 - ABDAY_7 | Abbreviated name of the nth day of the week. |
|---|---|
| DAY_1 - DAY_7 | Full name of the nth day of the week (1st day is Sunday). |
| ABMON_1 - ABMON_12 | Abbreviated name of the nth month of the year. |
| MON_1 - MON_12 | Full name of the nth month of the year. |
| AM_STR | String for Ante Meridian. |
| PM_STR | String for Post Meridian. |
| D_T_FMT | String for formatting date and time information. |
| D_FMT | String for formatting date values. |
| T_FMT | String for formatting time values. |
| T_FMT_AMPM | String for formatting time values in a 12-hour format with AM/PM. |
| ERA | String representing the Alternate Era. |
| ERA_YEAR | String representing the Alternate Era. |
| ERA_D_T_FMT | Era represented using the Alternate Era date and time format. |
| ERA_D_FMT | Date represented using the Alternate Era. |
| ERA_T_FMT | The time formatted using Alternate Era. |
| INT_CURR_SYMBOL | The international currency symbol for this locale. |
| CURR_SYMBOL | The local currency symbol for this locale. |
| CRNCYSTR | A synonym for CURR_SYMBOL. |
| MON_DECIMAL_POINT | The character used to represent a decimal point. |
| MON_THOUSANDS_SEP | For money formatting, the character to separate thousands. |
| MON_GROUPING | |
| POSITIVE_SIGN | Character used for a positive sign on currency. |
| NEGATIVE_SIGN | Character used for a negative sign on currency. |
| INT_FRAC_DIGITS | The number of fractional digits for international represenations. |
| FRAC_DIGITS | The number of fractional digits for local currency representations. |
| P_CS_PRECEDES | 1 indicates a currency symbol precedes positive money values. |
| P_SEP_BY_SPACE | 1 indicates a space character separates the positive sign and amount. |
| N_CS_PRECEDES | 1 indicates a currency symbol precedes negative money values. |
| N_SEP_BY_SPACE | 1 indicates a space character separates the negative sign and amount. |
| P_SIGN_POSN | |
| N_SIGN_POSN | |
| DECIMAL_POINT | The character used to represent a decimal point. |
| RADIXCHAR | A synonym for DECIMAL_POINT. |
| THOUSANDS_SEP | A character used to separate thousands values. |
| THOUSEP | A synonym for THOUSANDS_SEP. |
| YESEXPR | A regular expression pattern for matching yes input. |
| NOEXPR | A regular expression pattern for matching no input. |
| YESSTR | The standard string used to represent yes input. |
| NOSTR | The standard string used to represent no input. |
| CODESET | A string containing the text encoding used by the locale. |
// get the currency symbol $currencySymbol = nl_langinfo( CURR_SYMBOL ); echo 'Currency Symbol: ' . $currencySymbol;