mysql - PHP language based setting -
i creating mysql + php script user can configure lanuage based formates
like
dateformat: dd.mm.yyyy delimiter: , currency: € locale: de
is there standard available such configurations?
if mean built-in in php, yes there standard available. works locales. can use setlocale()
function, set current locale, has impact on different php functions, strftime()
. closer here.
but warned. output not expect, because not iso compliant. there has been long discussion locales , impact on date functions, in end decided stay posix compliant, not iso compliant.
Comments
Post a Comment