Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $expiry_time = strtotime('comming from database');
- $current_date = strtotime(date('Y-m-d H:i:s'));
- $time_diff = ($expiry_time-$current_date)/(3600);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement