How to set a condition so that from 08:00 to 24:00 the script shows one text, after 24:00 and until 08:00 it shows another text?
Thank you for attention!
if(date('H') >= 8 && date('H') <= 24){ echo "Сейчас работает"; } else { echo "Сейчас закрыто"; }
My version of the code does not work: (