I\'m writing a script were I have to check if a time range is between two times, regardless of the date.
For example, I have this two dates:
$from
Try this:
function checkTime($From, $Till, $input) { if ($input > $From && $input < $Till) { return True; } else { return false; }