title: Friendly Display of Store Hours from PHP Array
body: <p>I have an array in PHP that has store hours. Data includes day of the week, open time, and close time. I can display each day individually, but I'd like to be able to group days together where the hours are the same.</p>
  <p>For example: Sun-Mon 11-8, Tues-Sat 11-9.</p>
  <p>This data is coming from an API, so I can't change how I receive it. Any ideas to point me in the right direction?</p>
  <pre><code>[hours] =&gt; Array
  (
          [Monday] =&gt; Array
                  (
                          [0] =&gt; Array
                                  (
                                          [opening] =&gt; 11:00am
                                          [closing] =&gt; 08:00pm
                                          [description] =&gt; 
                                  )
  
                  )
  
          [Tuesday] =&gt; Array
                  (
                          [0] =&gt; Array
                                  (
                                          [opening] =&gt; 11:00am
                                          [closing] =&gt; 09:00pm
                                          [description] =&gt; 
                                  )
  
                  )
  
          [Wednesday] =&gt; Array
                  (
                          [0] =&gt; Array
                                  (
                                          [opening] =&gt; 11:00am
                                          [closing] =&gt; 09:00pm
                                          [description] =&gt; 
                                  )
  
                  )
  
          [Thursday] =&gt; Array
                  (
                          [0] =&gt; Array
                                  (
                                          [opening] =&gt; 11:00am
                                          [closing] =&gt; 09:00pm
                                          [description] =&gt; 
                                  )
  
                  )
  
          [Friday] =&gt; Array
                  (
                          [0] =&gt; Array
                                  (
                                          [opening] =&gt; 11:00am
                                          [closing] =&gt; 09:00pm
                                          [description] =&gt; 
                                  )
  
                  )
  
          [Saturday] =&gt; Array
                  (
                          [0] =&gt; Array
                                  (
                                          [opening] =&gt; 11:00am
                                          [closing] =&gt; 09:00pm
                                          [description] =&gt; 
                                  )
  
                  )
  
          [Sunday] =&gt; Array
                  (
                          [0] =&gt; Array
                                  (
                                          [opening] =&gt; 11:00am
                                          [closing] =&gt; 08:00pm
                                          [description] =&gt; 
                                  )
  
                  )
  
  )
  </code></pre>