substr - Convert PHP Date substring "month" date format to uppercase -


i have php code outputs alphabetical value of month of year , substring value show last letter i.e:<?php echo substr(date("m"),2);?>

it works problem result in lowercase. result "g" in case of "aug" instead of "g".

can code snippet this? appreciate it.

thanks in advance, ralph.

using strtoupper output expected:

<?php echo strtoupper(substr(date("m"),2));?> 

Comments