PHP: strftime(), date() or DateTime, Which is better?

前端 未结 2 1519
无人及你
无人及你 2021-02-07 00:46

I am curious to know if there is any advantage in PHP of using strftime() over date() or vice versa.

A class I downloaded used the strft

2条回答
  •  滥情空心
    2021-02-07 01:32

    is any advantage in PHP of using strftime() over date()

    From the date manual page:

    To format dates in other languages, you should use the setlocale() and strftime() functions instead of date().

提交回复
热议问题