PHP date() in foreign languages - e.g. Mar 25 Aoû 09

后端 未结 4 1532
小蘑菇
小蘑菇 2020-11-29 06:47

I have a script that needs to display date data to an international audience - e.g.

\"submitted Tue 25 Aug 09\"

Is there an easi

4条回答
  •  青春惊慌失措
    2020-11-29 07:26

    According to the date function's manual page, you should use setlocale. Methods such as strftime will then use the locale specified. date, however, will not for some reason.

提交回复
热议问题