参数为多个日期时间的数组,返回离当前时间最近的那个时间
```php //我只能想到foreach方式咯,欢迎大神修改 $data = [ '2020-02-02 11:11:11', '2019-02-02 11:55:11...
557
文章
1.7W+评论
3.8W+浏览
926W+标签
7.3K+```php //我只能想到foreach方式咯,欢迎大神修改 $data = [ '2020-02-02 11:11:11', '2019-02-02 11:55:11...
```php function getWeekday($time = '', $first = 1){ if (!$time) $time = time(); $sdefaultD...