Basic 'if' example (only produces output if it is October)

<?php
  // First put the current month into a variable
  $month = date('F');
  // Then only do something if the month is October
  if ($month == "October") {
     print "This is Halloween month";
    }
?>

More complex 'if' example
Sorry, no Halloween in April

<?php
  // First put the current month into a variable
  $month = date('F');
  // Then do one thing if the month is October
  if ($month == "October") {
     print "This is Halloween month";
    } else {
  // Or do something else if the month is anythign else
     print "Sorry, no Halloween in $month";
    }
?>