CodeIgniter / PHPGet all months name in php February 26, 2017 Chandan SharmaComment on Get all months name in php$months = array(); $currentMonth = 0; //(int)date('m'); for ($x = $currentMonth; $x < $currentMonth + 12; $x++) { $months[] = date('F', mktime(0, 0, 0, $x, 1)); } print_r($months);Share this:FacebookX