title: How to echo 1st and 15th of the month in php
body: <p>I need to echo the 1st and 15th of every month Jan-Dec in PHP. I know how to add days using </p>
  
  <pre><code>$date1 = $_POST['previous_pay_date'];
    $date2 = date('M j, Y', strtotime($date1 . " + 7 day"));
    $date3 = date('M j, Y', strtotime($date2 . " + 7 day"));
    $date4 = date('M j, Y', strtotime($date3 . " + 7 day"));
  
    $date1 = $_POST['previous_pay_date'];
    $date2 = date('M j, Y', strtotime($date1 . " + 14 day"));
    $date3 = date('M j, Y', strtotime($date2 . " + 14 day"));
    $date4 = date('M j, Y', strtotime($date3 . " + 14 day"));
  
    $date1 = $_POST['previous_pay_date'];
    $date2 = date('M j, Y', strtotime($date1 . " + 1 month"));
    $date3 = date('M j, Y', strtotime($date2 . " + 1 month"));
    $date4 = date('M j, Y', strtotime($date3 . " + 1 month"));
    $date5 = date('M j, Y', strtotime($date4 . " + 1 month"));
  </code></pre>
  
  <p>But now I need just the 1st and 15th of the month </p>