Display A Greeting Message On A Specific Date, Season or Occasion

The following code will dispaly a greeting message only on Christmas day.

<?php
if ((date('m') == 12) && (date('d') == 25)) { ?>
    <h2>Merry Christmas!</h2>
<?php } ?>

Revisions

There are no revisions for this post.

Tags: , ,

No comments yet.

Leave a Reply