RSSAmplifier

Home · Simon Holywell on Simon Holywell · Jul 20, 2015

PHP date localisation with setlocale

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Localising sites can be a chore, but PHP has the venerable setlocale() to use system locales. These are like templates or profiles that describe how various types of data should be displayed. Should a price have a comma or point to indicate the decimals? When printing a date should PHP output Monday or Montag? All of these considerations are locale specific and they map to a geographical area.…

Read on simonholywell.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.