I have a specific timestamp stored in $user_timestamp
, which could be for example 1421942631
. And I have the current timestamp stored in $current_timestamp
.
I want to compare the timestamp in this variable with the current timestamp and check if it has gone 3 days. If it has, then do action.
How can I do this in a basic if
statement?