fork(3) download
  1. <?php
  2. $myDate = "2015-05-05";
  3. echo date("Y-d-m",strtotime("monday this week"))."\n";
  4. echo date("Y-d-m",strtotime("tuesday this week"))."\n";
  5. echo date("Y-d-m",strtotime('wednesday this week'))."\n";
  6. echo date("Y-d-m",strtotime('thursday this week'))."\n";
  7. echo date("Y-d-m",strtotime('friday this week'))."\n";
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
2015-04-05
2015-05-05
2015-06-05
2015-07-05
2015-08-05