topical media & game development

talk show tell print

basic-php-02-leapyear.php / php



  <html>
  <head>
  <title>Is it a leap year?</title>
  </head>
  <body>
  <?php
  leapyear = date("L");
  if (leapyear == 1) echo "Hooray! It's a leap year!";
  else echo "Aww, sorry, mate. No leap year this year.";
  ?>
  </body>
  </html>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.