title: PHP: Count-IF for Arrays
body: <p>What would be the most efficient way of counting the number of times a value appears inside an array?</p>
  
  <p>Example Array ('apple','apple','banana','banana','kiwi')</p>
  
  <p><strong>Ultimately I want a function to spit out the percentages for charting purposes
   (e.g. apple = 40%, banana = 40%, kiwi = 20%)</strong></p>