O'Reilly logo

Programming PHP, 3rd Edition by Peter MacIntyre, Kevin Tatroe, Rasmus Lerdorf

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 the local currency symbol from a negative value

n_sign_posn

0 if parentheses surround the value and currency symbol ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required