/**
 * 检测是否是时间戳
 */
public static function checkTimestamp($timestamp) {
    if(!is_int($timestamp)) {
        return false;
    }

    if(strtotime(date('Y-m-d H:i:s',$timestamp)) === $timestamp) {
        return true;
    } else {
        return false;
    }
}

相关文章:

  • 2022-12-23
  • 2023-03-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-12-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
相关资源
相似解决方案