簡體   English   中英

PHP strtotime()不適用於每月的第一天

[英]PHP strtotime() not working with first day of month

由於某種原因,strtotime()對我而言無法正常工作。

strtotime("first friday 2016-01") outputs 8.1.2016 instead of 1.1.2016

strtotime("first tuesday 2016-02") outputs 8.2.2016 instead of 1.2.2016

我想念什么嗎? 輸入錯誤嗎?

PHP版本是:5.4

好吧,關鍵字“ of”是解決方案,

的strtotime(“ 2016-01第一星期五”)輸出2016年1月1日

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM