Advertisement
rakeshr

custom php date and info

Jun 11th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. <?php $theday = date('z');
  2.     if($theday >= "90" && $theday <= "243") {
  3.     $season = "Heute geöffnet: 9 bis 17 Uhr.";
  4.     } elseif($theday >= "244" && $theday <= "365") {
  5.     $season = "Heute geöffnet: 13 bis 17 Uhr.";
  6.     } elseif ($theday >= "1" && $theday <= "89") { $season = "Heute geöffnet: 13 bis 17 Uhr.";   }
  7.     echo $season;
  8. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement