I made this switch, but I dont know this last step (the ?? and the comments). If someone can help me, thanks a lot!
<?
$nuDatumTijd = date("Y-m-d H:i:s");
$nuUur = date("H");
switch(true)
{
case $nuUur > 8 && $nuUur < 13:
$aantSecErbij = ??; // number of seconds untill the first next 13:00
$weerOp = date($nuDatumTijd,$aantSecErbij);
echo $weerOp;
break;
case $nuUur > 12 && $nuUur < 18:
$aantSecErbij = ??; // number of seconds untill the first next 19:00
$weerOp = date($nuDatumTijd,$aantSecErbij);
echo $weerOp;
break;
case $nuUur > 17 && $nuUur < 22:
$aantSecErbij = ??; // number of seconds untill the first next 9:00 (so that is the next day)
$weerOp = date($nuDatumTijd,$aantSecErbij);
echo $weerOp;
break;
}
?>