- var_dump: documentation ( source)
- time: documentation ( source)
- str_replace: documentation ( source)
- strtotime: documentation ( source)
<?php
function test( $date ) {
$reminder_time = strtotime( str_replace( '-', ' ', $date ) . ', 2015' );
$reminder_time = $reminder_time - ( DAY_IN_SECONDS );
var_dump( ( time() >= $reminder_time ) );
}
test( 'nov-21' );
test( 'dec-23' );
test( 'dec-24' );
test( 'dec-25' );