SyntaxFix
Write A Post
Hire A Developer
Questions
Simple way to compare time is :
$time = date('H:i:s',strtotime("11 PM")); if($time < date('H:i:s')){ // your code }