- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$month = 10;
$monthName = date('M', strtotime('2012-'.$month.'-01'));
echo $monthName.'<br />';
echo strtotime('first day of '.$monthName).'<br />';
echo strtotime('last day of '.$monthName).'<br />';