$info = localeconv()
Array
(
[decimal_point] => ,
[thousands_sep] => .
[int_curr_symbol] => EUR
[currency_symbol] => EUR
[mon_decimal_point] => ,
[mon_thousands_sep] => .
[positive_sign] =>
[negative_sign] => -
[int_frac_digits] => 2
[frac_digits] => 2
[p_cs_precedes] => 0
[p_sep_by_space] => 1
[n_cs_precedes] => 0
[n_sep_by_space] => 1
[p_sign_posn] => 1
[n_sign_posn] => 1
[grouping] => Array
(
[0] => 3
[1] => 3
)
[mon_grouping] => Array
(
[0] => 3
[1] => 3
)
)
Die POSIX Erweiterung
nl_langinfo()
liefert noch detaillierte Informationen, z.B.
- PREGs für "Ja" und "Nein"
- Monate, Tage in der Locale
- Datum/Zeitformate für strftime()
- Alternative Kalender
- Zahlenformatierung