【发布时间】:2010-11-27 18:22:57
【问题描述】:
这是我正在尝试编写的函数:
function getWednesdays($month, $year) {
// Returns an array of DateTimes representing all Wednesdays this month.
}
有什么想法吗?谢谢-
【问题讨论】:
-
如果你有 DateTime 可用,这很容易。检查php.net/manual/en/class.datetime.php