关于将工作日和工作日翻译成本地语言的任何想法?我有可打印下5周工作日的脚本,我希望它们使用其他语言。
$timestamp = strtotime('next Monday');
for ($i = 0; $i < 35; $i++) {
echo strftime('%A', $timestamp)." ";
$timestamp = strtotime('+1 day', $timestamp);
}
有没有与PHP和moment.js的良好集成?我已经在moment.js和GitHub fightbulc / moment.php中查看了使用PHP的date()格式,但是我不知道如何使用它们。
先感谢您。
您可能正在寻找以下内容:
http://php.net/manual/zh/function.setlocale.php
http://php.net/manual/zh/function.strftime.php
更新
setlocale(LC_TIME, "fi");
echo utf8_encode(strftime('%A'));
结果
perjantaina
这是给你们的礼物-ISO语言代码
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句