title: Checking if date is weekend PHP
body: <p>This function seems to only return false. Are any of you getting the same? I'm sure I'm overlooking something, however, fresh eyes and all that ...</p>
  
  <pre><code>function isweekend($date){
      $date = strtotime($date);
      $date = date("l", $date);
      $date = strtolower($date);
      echo $date;
      if($date == "saturday" || $date == "sunday") {
          return "true";
      } else {
          return "false";
      }
  }
  </code></pre>
  
  <p>I call the function using the following: </p>
  
  <pre><code>$isthisaweekend = isweekend('2011-01-01');
  </code></pre>