<?php
$timestamp
= time();
// 时间戳
if
(
date
(
'Ymd'
,
$timestamp
) ==
date
(
'Ymd'
)) {
echo
'今天'
;
}
这样既可,只要判断月份后面的day,即可知道是不是今天已经有了一次,或者是不是今天