fork(9) download
  1. <?php
  2. echo "current month 28: ";
  3. echo date('Y-m-28', mktime(0,0,0,date('m'),1,date('Y'))) . "\n";
  4.  
  5. echo "Next month 28: ";
  6. echo date('Y-m-28', mktime(0,0,0,date('m')+1,1,date('Y'))) . "\n";
  7.  
  8. echo "Previous month 28: ";
  9. echo date('Y-m-28', mktime(0,0,0,date('m')-1,1,date('Y'))) . "\n";
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
current month 28: 2015-04-28
Next month 28: 2015-05-28
Previous month 28: 2015-03-28