I want to how to check whether given time lies in two time range or not. For example: 22:00 < 22:30 , here condition getting false. Thanks in advance.
$time1="11:00";
$time2="22:30";
$currenttime=date("22:00");
if($time1 - $currenttime < 0 && $currenttime - $time2 < 0 ) {
echo "Lies in range";
} else {
echo "Not lies in range";
}