title: How to calculate average on star rating system in php
body: <p>This my input, how i calculate average?</p>
  
  <pre><code>5 star - 252
  4 star - 124
  3 star - 40
  2 star - 29
  1 star - 33
  
  totally 478 
  </code></pre>
  
  <p>Can anyone tell me..</p>