想获取 一个时间到现在 时间 月份的列表
$arr = array(
        1422720000,1425139200,1425139200,1422720000,
        1425139200,1422720000,1425139200,1425139200,
        1422720000,1425139200,1425139200,1422720000,
        1425139200,1425139200,1425139200,1425139200,
        1433088000,1425139200,1412092800,1388505600,
        1406822400,1401552000,1398873600,1409500800,
        1409500800,1409500800,1409500800,1409500800);foreach ( $arr as $v ) {
    $cur = strtotime(date('Y-m-01'));
    dump(get_month_list($v,$cur));
}function get_month_list($inTime,$cur){
    $list = array();
    $flag = true;
    while ( $flag ) {
        $list[] = date('Y-m',$inTime);
        if ( $cur == $inTime ) $flag = false;
        $inTime = strtotime("+1 month", $inTime);
    }
    return $list;
}Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 79 bytes) in D:\WWW\mayihr\back\index.php on line 43