fork(2) download
  1. <?php
  2.  
  3.  
  4. $monthNum = 6;
  5. $dateObj = DateTime::createFromFormat('m', $monthNum);
  6. $dateObj->setTimezone(new DateTimeZone('America/Sao_Paulo'));
  7. $monthName = $dateObj->format('M');
  8. echo $monthName;
  9.  
Success #stdin #stdout 0.02s 24408KB
stdin
Standard input is empty
stdout
Jun