如何检查以前存储的time()值是否为今天的PHP?

How to check if a previously stored time() value is today in php?

I have a xml stored with a timestamp generated from time() in php. I would like to use php to check if the date of the timestamp is today. Whats the best way to do this? I'm very confused on the format of PHP date/time functions. Thanks!

Use this

$timestamp = yourprevioustimestamp;
if(date('Ymd') == date('Ymd', $timestamp)){
//if it's equal...
}
else{
//if it is not...
}