How can I convert date from 8 to AUG
<p>I would like to convert the number to actual month. I only need a month.</p>

<p>I am now trying like this</p>

<p><code>$str = 8;</code>
<code>$anInt = intval($str);</code>
<code>$test = date('M',$anInt);</code>
<code>echo $test;</code></p>

<p>the result is JAN, I was supposed to get "AUG" as a result. I dont know why.</p>

<p>any idea or suggestion for me?</p>
