여기 내 코드, 내가 실수? Btw 내 시간대는 UTC + 2:00입니다. 미리 답변 해 주셔서 감사합니다.시간과 다른 메시지보기 | PHP는
<?php
$current_time = date('H');
if ($current_time >18) {
echo "Good night";
}
if ($current_time <12) {
echo "Good morning";
}
if (($current_time >=12) && ($current_time <17)) {
echo "Good day";
}
?>
무엇이 문제입니까? 작동하지 않는 것은 무엇입니까? '$ current_time'에는 무엇이 들어 있습니까? –