Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ts = strtotime($bd);
- $now = time();
- $now->setTime( 0, 0, 0 );
- $match_date = $ts;
- $match_date->setTime( 0, 0, 0 );
- $diff = $now->diff( $match_date );
- $diffDays = (integer)$diff->format( "%R%a" );
- switch( $diffDays ) {
- case -1:
- return true;
- break;
- default:
- return false;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement