如何找到每月的第 2 和第 4 个星期六。我写了这些行:-
echo "may 2nd sat ".date('d', strtotime('may 2013 second saturday'));
echo '<br/>may 4th sat '.date('d', strtotime('may 2013 fourth saturday'));
echo '<br/>june 2nd sat '.date('d', strtotime('june 2013 second saturday'));
echo '<br/>june 4th sat '.date('d', strtotime('june 2013 fourth saturday'));
它提供以下输出:-
may 2nd sat 11
may 4th sat 25
june 2nd sat 15
june 4th sat 29
它在月份给出正确答案 may
但不是june 2013
,在jun 1013
第 2 和第 4 个星期六应该分别是 8 和 22。我怎么能解决这个问题。