Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dateDiff($start, $end) {
- $start_ts = strtotime($start);
- $end_ts = strtotime($end);
- $diff = $end_ts - $start_ts;
- return round($diff / 86400);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement