Posted By


Waldio on 03/23/11

Tagged


Statistics


Viewed 107 times
Favorited by 0 user(s)

Related snippets


strtotime Feestdagen


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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. }

URL: http://php.net/strtotime

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.