title: Convert month number to month short name
body: <p>I have a variable with the following value</p>
  
  <pre><code>$month = 201002; 
  </code></pre>
  
  <p>the first 4 numbers represent the year, and the last 2 numbers represent the month. I need to get the last 2 numbers in the month string name eg. Feb</p>
  
  <p>My code looks like this</p>
  
  <pre><code>&lt;?php echo date('M',substr($month,4,6)); ?&gt;
  </code></pre>
  
  <p>I can I go about to obtain the month name</p>