Convert PHP Date substring "month" date format to uppercase
<p>I have a PHP code that outputs the alphabetical value of the month of the year and then I substring the value to show only the last letter i.e:<code>&lt;?php echo substr(date("M"),2);?&gt;</code></p>

<p>It works well but the only problem is the result is in lowercase. The result i get is "g" in the case of "Aug" instead of "G".</p>

<p>Can someone help with a code snippet to do this? I would really appreciate it.</p>

<p>Thanks in advance,
Ralph.</p>