Name

localeconv

Synopsis

array localeconv(  )

Returns an associative array of information about the current locale’s numeric and monetary formatting. The array contains the following elements:

decimal_point

Decimal-point character

thousands_sep

Separator character for thousands

grouping

Array of numeric groupings; indicates where the number should be separated using the thousands separator character

int_curr_symbol

International currency symbol (e.g., “USD”)

currency_symbol

Local currency symbol (e.g., “$”)

mon_decimal_point

Decimal-point character for monetary values

mon_thousands_sep

Separator character for thousands in monetary values

positive_sign

Sign for positive values

negative_sign

Sign for negative values

int_frac_digits

International fractional digits

frac_digits

Local fractional digits

p_cs_precedes

true if the local currency symbol precedes a positive value; false if it follows the value

p_sep_by_space

true if a space separates the local currency symbol from a positive value

p_sign_posn

0 if parentheses surround the value and currency symbol for positive values, 1 if the sign precedes the currency symbol and value, 2 if the sign follows the currency symbol and value, 3 if the sign precedes the currency symbol, and 4 if the sign follows the currency symbol

n_cs_precedes

true if the local currency symbol precedes a negative value; false if it follows the value

n_sep_by_space

true if a space separates ...

Get Programming PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.