输入进来的时间戳如何检查合法性?如下函数即可:
function isValidTimeStamp($timestamp){
return ((string) (int) $timestamp === $timestamp)
&&[......]
输入进来的时间戳如何检查合法性?如下函数即可:
function isValidTimeStamp($timestamp){
return ((string) (int) $timestamp === $timestamp)
&&[......]