Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚发现了这个功能strftime()。手册说:
strftime()
根据区域设置格式化本地时间/日期”。
但是......从哪里检索语言环境(en,es......)?
PHP 将使用服务器的区域设置。您可以通过setlocale()进行设置。