<?php
$date= date('md');
$cyfra = substr($date, 0,1);
if($cyfra == 0) $date = substr($date, 1,4);
if (321 <= $date) echo "prawda";
if((321 <= $date) && ($date < 622)) $style = "wiosna";
elseif($date >= 622 && $date < 923) $style = "lato";
elseif($date >= 923 && $date < 1222) $style = "jesien";
elseif(($date < 321) || ($date >= 1222)) $style = "zima";
echo $style;
- Output for 5.5.0 - 5.5.37, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.6 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
- zima
preferences:
45.54 ms | 409 KiB | 5 Q