Check time in range php

I have to check if the current daytime falls in a specific range. I looked up the internet and found several similar solutions like this one:

$now = date["His"];//or date["H:i:s"]

$start = '130000';//or '13:00:00'
$end = '170000';//or '17:00:00'

if[$now >= $start && $now 

Chủ Đề