title: php check the date is Saturday
body: <p>how to check if the date is saturday. </p>
  
  <pre><code>&lt;input id="datePicker" name="datePicker" type="text" class="textinput date-pick"&gt;
  </code></pre>
  
  <p>my code:</p>
  
  <pre><code>if(date('Y-m-d', strtotime('this Saturday')) == $_SESSION['search_date']) {
    echo 'Event this saturday'; 
  } else {
    echo 'Event on the others day';
  }
  </code></pre>
  
  <p>above code echoing only for the next week event! if i search for week after or 3 week etc, is not showing the result?</p>