PHP: calculating the average 3
<p>Im working on a star rating (5 stars is best, 1 is bad), and i have 4 records of 4 users voted.</p>

<pre><code>user1: 3
user2: 4
user3: 5
user4: 3
</code></pre>

<p>How can i calculate out the average of this in php?</p>

<p>Is it just simple math, $count = $user1 + $user2 + $user3 + $user4/4 ?</p>

<p>I tried:</p>

<pre><code>echo round(3+4+5+3/4);
</code></pre>

<p>and got the number "13" which is not right</p>
