php get array of dates in a month code example Example: php grab month from date $month = date("m",strtotime($mydate));