fork(3) download
  1. <?php
  2. $d = new DateTime('2015-12-31');
  3. $d->modify('first day of last month');
  4. echo $d->format('Y-m-28');
  5. ?>
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
2015-11-28