fork(1) download
  1. <?php
  2.  
  3. $number_of_dates = 10;
  4. $startDate = mktime(0, 0, 0, 5, 2, 2012); // May 2, 2012
  5. for ($i = 0; $i < $number_of_dates; $i++) {
  6. $date = strtotime('Wednesday +' . ($i * 2) . ' weeks', $startDate);
  7. echo date('m-d-Y', $date).PHP_EOL;
  8. }
Success #stdin #stdout 0.02s 13664KB
stdin
Standard input is empty
stdout
05-02-2012
05-16-2012
05-30-2012
06-13-2012
06-27-2012
07-11-2012
07-25-2012
08-08-2012
08-22-2012
09-05-2012