- var_dump: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$today = date('d-m-Y');
$our = date('H:i:s');
//$our = '23:10:00';
$nextDay = date('Y-m-d', strtotime('now + 1day'));
if($our <= '8:00:00' && $our >= '22:00:00'):
//hello
endif;
var_dump($our);