I have 3 inputs for this :
1. $start_time = 21:00
2. $end_time = 09:00
3. $pickup_time = 23:00
What I want to check is, if the pickup_time is between start_time and end_time then return true otherwise return false.
I already tried this by converting all times using strtotime() and then checked them directly but that does not work here as that gives 21:00 as greater value then 09:00
And I do not want to check between 09:00 to 21:00 but I want to check between 21:00 to 09:00.