date('N') 周一到周日 以1-7表示
参考:http://php.net/manual/en/function.date.php
N | ISO-8601 numeric representation of the day of the week (added in PHP 5.1.0) | 1 (for Monday) through 7 (for Sunday) |
date('N') 周一到周日 以1-7表示
参考:http://php.net/manual/en/function.date.php
N | ISO-8601 numeric representation of the day of the week (added in PHP 5.1.0) | 1 (for Monday) through 7 (for Sunday) |