I have a variable with the following value
$month = 201002;
the first 4 numbers represent the year, and the last 2 numbers represent the m
This may help you..
$month = substr($month, -2, 2); echo date('M', strtotime(date('Y-'. $month .'-d')));