Posted By

Waldio on 03/23/11


Tagged

scripts functies


Versions (?)

strtotime Feestdagen


 / Published in: PHP
 

URL: http://php.net/strtotime

  1. $nu = date('j n');
  2. $kerst = date('j n', strtotime('25 12'));
  3. $sint = date('j n', strtotime('5 12'));
  4.  
  5. if($nu == $kerst) {
  6. echo 'Fijne feestdagen!';
  7. }
  8. elseif($nu == $sint) {
  9. echo 'Hoor de wind waait door....';
  10. }

Report this snippet  

You need to login to post a comment.