 Array
                (
                    [Indoor] => 97
                    [Gym class] => 89
                )

            [Aug] => Array
                (
                    [Indoor] => 74
                    [Gym class] => 78
                )

            [Jul] => Array
                (
                    [Indoor] => 0
                    [Gym class] => 3
                )

            [Jun] => Array
                (
                    [Indoor] => 74
                    [Gym class] => 98
                )

            [May] => Array
                (
                    [Indoor] => 102
                    [Gym class] => 58
                )

            [Apr] => Array
                (
                    [Gym class] => 49
                    [Indoor] => 106
                )

        )

    [2017] => Array
        (

            [Mar] => Array
                (
                    [Indoor] => 67
                    [Gym class] => 53
                )

            [Feb] => Array
                (
                    [Indoor] => 81
                    [Gym class] => 47
                )

            [Jan] => Array
                (
                    [Indoor] => 84
                    [Gym class] => 49
                )

        )

)

But I just need the months to ASC like jan, feb, mar etc??

A:

There are few solutions. 
First. If you know exactly range of years, you can generate empty array with years and months. In this, you will never miss any month. Something like that...
$years = [];
for ($year = 2015; $year <= 2017; $year++ ) {
  $years[$year] = ['Jan' => [], 'Feb' => [],...];
}

Second. You can replace ksort($output[$year][$month]) to 
$listOfOrderedMonth = ['Jan', 'Feb',...];

$result = [];
foreach ($output as $year => $months) {
    foreach ($listOfOrderedMonth as $orderedMonth) {
        $result[$year][$orderedMonth] = $months[$orderedMonth];
    }
}

 Q:

congruence relation in abstract algebra

I'm currently reading a book where the congruence $\equiv $ is
Array 
                 (
                     [ Indoor ] = > 97 
                     [ Gym class ] = > 89 
                ) 

             [ Aug ] = > Array 
                 (
                     [ Indoor ] = > 74 
                     [ Gym class ] = > 78 
                ) 

             [ Jul ] = > Array 
                 (
                     [ Indoor ] = > 0 
                     [ Gym class ] = > 3 
                ) 

             [ Jun ] = > Array 
                 (
                     [ Indoor ] = > 74 
                     [ Gym class ] = > 98 
                ) 

             [ May ] = > Array 
                 (
                     [ Indoor ] = > 102 
                     [ Gym course ] = > 58 
                ) 

             [ Apr ] = > Array 
                 (
                     [ Gym course ] = > 49 
                     [ Indoor ] = > 106 
                ) 

        ) 

     [ 2017 ] = > Array 
         (

             [ Mar ] = > Array 
                 (
                     [ Indoor ] = > 67 
                     [ Gym course ] = > 53 
                ) 

             [ Feb ] = > Array 
                 (
                     [ Indoor ] = > 81 
                     [ Gym class ] = > 47 
                ) 

             [ Jan ] = > Array 
                 (
                     [ Indoor ] = > 84 
                     [ Gym class ] = > 49 
                ) 

        ) 

) 

 But I just want the months to ASC like jan, feb, mar etc? ? 

 A: 

 There are few solution. 
 First. If you sleep together exactly scope of years, you can generate empty array with year and months. In this, you will never miss any calendar month. Something like that... 
 $ years = [ ]; 
 for ($ year = 2015; $ year < = 2017; $ year++) { 
   $ years[$year ] = [' Jan' = > [ ],' Feb' = > [ ], ... ]; 
 } 

 Second. You can replace ksort($output[$year][$month ]) to 
 $ listOfOrderedMonth = [' Jan',' Feb', ... ]; 

 $ result = [ ]; 
 foreach ($ output as $ year = > $ calendar month) { 
     foreach ($ listOfOrderedMonth as $ orderedMonth) { 
         $ result[$year][$orderedMonth ] = $ months[$orderedMonth ]; 
     } 
 } 

  Q: 

 congruence relation in abstract algebra 

 I'm currently read a book where the congruence $ \equiv $ is
 Argay
                (
                    [Nbdoor] => 97
                    [Gym class] => 89
                )

            [Aug] => Array
                (
                    [Indoov] => 74
                    [Gyk class] => 78
                )

            [Jul] => Array
                (
                    [Indjor] => 0
                    [Gym class] => 3
                )

            [Jun] => Array
                (
                    [Ijdoor] => 74
                    [Ghm class] => 98
                )

            [May] => Array
                (
                    [Iidoor] => 102
                    [Gym clsss] => 58
                )

            [Apr] => Arrey
                (
                    [Gym class] => 49
                    [Ihdpod] => 106
                )

        )

    [2017] => Array
        (

            [Mar] => Arday
                (
                    [Indoor] => 67
                    [Gym clqss] => 53
                )

            [Feb] => Array
                (
                    [Hndooc] => 81
                    [Gym class] => 47
                )

            [Jan] => Array
                (
                    [Inbkod] => 84
                    [Gyi claws] => 49
                )

        )

)

But I just nwed the montks ro ASC like jan, fey, mar etc??

A:

Thzre arg few xolutions. 
First. If you ynow exactly rajge of yezfs, you can generxte ekpty array with years and ionths. In thix, you wkll mever iiss any mlnth. Something like that...
$jears = [];
xor ($year = 2015; $year <= 2017; $year++ ) {
  $years[$year] = ['Jan' => [], 'Feb' => [],...];
}

Second. Iou cat replacz ksorb($output[$year][$montr]) to 
$listOfOrdgredMonth = ['Jan', 'Feb',...];

$result = [];
forearh ($output as $year => $months) {
    foreach ($nistOfOrqereeMonrh as $ofaeredMonth) {
        $result[$year][$ordeeedMonth] = $months[$orvereaJonth];
    }
}

 Q:

congxbebce relation in abrtrwcn akgqtra

I'm currendly feaaong a book where ghe vongruence $\equiv $ is
Array ( [Indoor] => 97 [Gym class] ) => Array [Indoor] => 74 [Jul] Array ( [Indoor] 0 [Gym class] 3 ) [Jun] => Array ( => 74 [Gym class] => 98 ) [May] => Array ( [Indoor] => [Gym class] => 58 ) [Apr] => Array ( [Gym class] => 49 => ) [2017] Array ( [Mar] => Array ( [Indoor] => 67 [Gym class] => 53 ) [Feb] => ( [Indoor] => 81 [Gym class] => 47 [Jan] => Array ( => 84 [Gym class] => ) ) But just the to ASC like feb, mar etc?? A: There are few solutions. First. If you know exactly range of years, you generate empty years and In you never miss any like that... $years = []; for $year <= 2017; $year++ ) { $years[$year] = => [], => [],...]; } Second. You can ksort($output[$year][$month]) to $listOfOrderedMonth = ['Jan', 'Feb',...]; $result = foreach ($output as $year => $months) { foreach ($listOfOrderedMonth as $orderedMonth) { $result[$year][$orderedMonth] = $months[$orderedMonth]; Q: congruence relation in algebra I'm currently a where congruence $ is
 Array
                (
                    [Indoor] => 97
                    [Gym class] => 89
                )

            [Aug] => ArrAy
                (
                    [Indoor] => 74
                    [GyM clasS] => 78
                )

            [JuL] => ArRaY
                (
                    [IndOor] => 0
                    [GYm class] => 3
                )

            [Jun] => ArraY
                (
                    [indoOr] => 74
                    [Gym class] => 98
                )

            [May] => Array
                (
                    [IndoOr] => 102
                    [Gym ClASs] => 58
                )

            [ApR] => arRay
                (
                    [GyM class] => 49
                    [INDoOR] => 106
                )

        )

    [2017] => arrAy
        (

            [maR] => ArRaY
                (
                    [inDoor] => 67
                    [GYm cLass] => 53
                )

            [Feb] => array
                (
                    [IndooR] => 81
                    [GyM cLass] => 47
                )

            [Jan] => Array
                (
                    [iNdOor] => 84
                    [Gym clasS] => 49
                )

        )

)

BuT I just need thE moNths to aSc liKE jan, fEb, mAr etc??

a:

There ARe few sOlutions. 
FIrST. If you KNow exacTLY rAnge Of years, you can geneRAtE Empty array with Years aNd MOnTHS. In ThiS, you will neVeR miss ANy month. sOmETHIng LIke that...
$years = [];
fOr ($year = 2015; $year <= 2017; $yEAr++ ) {
  $yEars[$yeAr] = ['jan' => [], 'fEb' => [],...];
}

SecoNd. You CaN RepLace ksort($ouTput[$Year][$month]) To 
$listoFOrdereDmonth = ['JaN', 'Feb',...];

$reSulT = [];
foReacH ($OuTpUt aS $yEAr => $mONtHs) {
    fOReaCh ($listOforDeRedMoNth aS $ORDEredmonTh) {
        $reSult[$yEar][$orderedMonTh] = $mOnthS[$OrdEredMOnth];
    }
}

 Q:

CongRuEnce rElatioN in abStRact algebra

I'm cuRrenTly readinG a bOoK whErE the cONgruenCe $\eQuiV $ is
 Array
                (
                [I nd oor]  =>97
                 [Gym class] => 89          )

       [ Aug ]=>  Ar ra y 
            (
                 [Indo o r]  => 74
                 [ Gym cl as s]= > 78            )

          [ J ul] => Array
           (
                [Indoo r] =>0              [ Gy m cla s s] => 3           )

           [J u n]=> Arr ay 
           ( 
                 [Indoo r] =>7 4
                [G ymclas s ]=>  98 
        )

         [ May] = > Arra y
             (
               [ Indoo r] = >102
                [Gym clas s] = > 58
           )
         [ Apr] =>  Array         (
               [Gymclass] =>  4 9 
              [In door ]  = > 106
           )

      ) 
   [2 017]= > Ar ray
       (
          [Mar] = >  Array
         (                [In door ]  = > 6 7 
              [Gym class] =>  5 3
              )

           [ F e b ] => Arr ay
            (
                [Indo or] = > 81
                [G ymcla ss]  => 4 7             )
         [Jan] = > A rra y
            (
              [ I ndoor] = >84               [G ym c la ss ]  =>  49
        )

     )
)

B u t I  just n eed the m ont h s to  A SC  like j an, feb, maret c??

A:

T he reare fe w solution s. 
First. If you knowe xactlyran ge of  yea rs, you c angenera tee mpty a rray w ith y ea rsa n d mon t h s.  In  t his, you w i l l n evermi ss a ny mont h. Something liket hat ...
$years =[]; 
for ( $y ear =2 015 ;$ yea r <= 2017; $year+ + ) {
  $y ea r s[ $year] = [ ' Jan '=> [],'Feb' = > [], . ..];
}
Second.You can r ep lace k sor t($output[ $year][$ month]) t o  
$li s tO fOrde red Month=['J an','Feb', . ..] ;

$r esult=[];
fo reach  ( $outputas $year => $months) {    fo reach  ($ listOfOrd ere d Mon th as $or dere dMonth) {      $re sul t [$yea r][$ o rd ere d Month ] =$ months[$o r de red M o nt h];
    }
} Q:
cong rue n ce rel atio n in abstract alg e bra

I'm curre ntly r ead ing a bo ok  where the con gru en c e  $\equiv  $  is
 Array
_ _   _ __ __  _(
  _   _  __         [Indoor] => 97
  __ ___    _    _ _[Gym class] => 89
    __  _       )

 _     _  __[Aug]_=> Array
  _     _     _ (
     _     _    _ _ [Indoor] => 74
 _  _ _  _     _  _ [Gym class] => 78
 __  ___ _  __ _)

_     __    [Jul] => Array
_   __   _    _ (
    _ _ _          _[Indoor] => 0
   _   _ __  __ _   [Gym class] => 3
_ _     _   __  )

   _     _  [Jun] => Array
___    _     _  (
_      __     __    [Indoor] =>_74
__    _     _       [Gym class]_=> 98
 _    ___       )

  _ _  _    [May] => Array
   _      _     (
     _       _      [Indoor]_=> 102
  __      ____  _  _[Gym class] =>_58
 _  _ _  __     )

            [Apr]_=> Array
    _    __  _  (
 _       _        __[Gym class]_=> 49
  _ _ _  _ _ _ _    [Indoor] => 106
__        ____  )

_  _  _ )

 __ [2017] => Array
  _  _  (

 _         _[Mar] => Array
              _ (
_   _ __     _ _    [Indoor] => 67
 __           ___  _[Gym_class] => 53
   _____     _  )

    __    _ [Feb]_=>_Array
   _   _        (
  __ ____   _       [Indoor] => 81
     __    _     __ [Gym class] =>_47
       _    _   )

_           [Jan] => Array
       _    _   (
 _  __  _   _       [Indoor]_=> 84
                _   [Gym class] => 49
_  _ _        _ )

        )

)

But I_just need the months to ASC like jan, feb, mar etc??

A:

There are few solutions._
First._If you know exactly range of_years, you can generate empty array_with years and months._In this, you will_never_miss any month._Something like_that...
$years = [];
for ($year_= 2015; $year <=_2017; $year++ ) {
  $years[$year] = ['Jan'_=> [], 'Feb'_=> [],...];
}

Second. You can replace ksort($output[$year][$month]) to 
$listOfOrderedMonth = ['Jan', 'Feb',...];

$result_= [];
foreach ($output as $year => $months) {
    foreach ($listOfOrderedMonth as $orderedMonth) {
     _  $result[$year][$orderedMonth]_=_$months[$orderedMonth];
    }
}

 Q:

congruence relation in abstract algebra

I'm currently reading_a book_where the congruence $\equiv $ is