PHP print Month in French?

前端 未结 6 894
独厮守ぢ
独厮守ぢ 2020-12-18 10:27

I want to print the date in french like:

le 25 février 2014

This is my PHP code I used but it\'s not working.

setlocale(LC_         


        
6条回答
  •  -上瘾入骨i
    2020-12-18 11:29

    You can also try an empty string. It should automatically use the language of your OS (of course it will only work if your OS is in French).

    setlocale(LC_TIME, '');
    

提交回复
热议问题