title: how to show show active and inactive month from given date array
body: <p>I need a <code>php</code> function that show active and inactive month.</p>
  
  <p>My array:</p>
  
  <pre><code>$dates = array('2014-08','2014-09','2014-11','2014-12','2015-02',)
  </code></pre>
  
  <p>expected output:</p>
  
  <pre><code>2014-08 Active   
  2014-09 Active    
  2014-10 Inactive    
  2014-11 Active    
  2014-12 Active    
  2015-01 Inactive    
  2015-02  Active
  </code></pre>