- var_dump: documentation ( source)
- date: documentation ( source)
<?php
$h = date('G'); //set variable $h to the hour of the day
$d = date('w'); //set variable $d to the day of the week
$m = date('i'); //set variable $m to minute of the hour
$dd = date('wGi');
var_dump($h);
var_dump($d);
var_dump($m);
var_dump($dd);
if (($dd > 1830) && ($dd < 61730)) {
echo "we are open";
}