<?php
setlocale(LC_ALL
, 'pt_BR', 'pt_BR.utf-8', 'pt_BR.utf-8', 'portuguese');
$meses = range(--$mes, $mes+2);
foreach($meses as $item){
echo 'valor: '. $item .' descricao: '. strftime('%B', strtotime('2015-'.$item.'-01')) .PHP_EOL
; }
PD9waHAKc2V0bG9jYWxlKExDX0FMTCwgJ3B0X0JSJywgJ3B0X0JSLnV0Zi04JywgJ3B0X0JSLnV0Zi04JywgJ3BvcnR1Z3Vlc2UnKTsKZGF0ZV9kZWZhdWx0X3RpbWV6b25lX3NldCgnQW1lcmljYS9TYW9fUGF1bG8nKTsKCiRtZXMgPSBzdHJmdGltZSgnJW0nKTsKJG1lc2VzID0gcmFuZ2UoLS0kbWVzLCAkbWVzKzIpOwoKZm9yZWFjaCgkbWVzZXMgYXMgJGl0ZW0pewoJZWNobyAndmFsb3I6ICcuICRpdGVtIC4nIGRlc2NyaWNhbzogJy4gc3RyZnRpbWUoJyVCJywgc3RydG90aW1lKCcyMDE1LScuJGl0ZW0uJy0wMScpKSAuUEhQX0VPTDsKfQoKCg==