title: Convert number to month name in PHP
body: <p>I have this PHP code:</p>
  
  <pre><code>$monthNum = sprintf("%02s", $result["month"]);
  $monthName = date("F", strtotime($monthNum));
  
  echo $monthName;
  </code></pre>
  
  <p>But it's returning <code>December</code> rather than <code>August</code>.</p>
  
  <p><code>$result["month"]</code> is equal to 8, so the <code>sprintf</code> function is adding a <code>0</code> to make it <code>08</code>.</p>