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("first friday of 2016-01") 输出 1.1.2016