Error returned with array_count_values after rounding and multiplying
<p>I would like to be able to use array_count_values in the following way:</p>

<pre><code>$roundedans = 10 * round($groupdiff, 1);
$diffarray[] = $roundedans;

print_r(array_count_values($diffarray));
</code></pre>

<p>The first two lines are part of a while loop that inserts $roundedans into the array and array_count_values is called outside of the loop.</p>

<p>When I try to run the code I get this error:</p>

<pre><code>Warning: array_count_values() [function.array-count-values]: Can only count STRING and INTEGER values! in...
</code></pre>

<p>This is even though I've converted all of the values to an integer by multiplying by 10.</p>

<p>Any help would be appreciated.</p>

<p>This is the output from just print_r:</p>

<pre><code>Array ( [0] =&gt; 6 [1] =&gt; 15 [2] =&gt; 8 [3] =&gt; 13 [4] =&gt; -60 [5] =&gt; 1 [6] =&gt; -61 [7] =&gt; 7 [8] =&gt; 49 [9] =&gt; 26 [10] =&gt; -3 [11] =&gt; -66 [12] =&gt; 20 [13] =&gt; 10 [14] =&gt; 6 [15] =&gt; -94 [16] =&gt; -1 [17] =&gt; -6 [18] =&gt; -19 [19] =&gt; -1 [20] =&gt; 48 [21] =&gt; -4 [22] =&gt; 45 [23] =&gt; 21 [24] =&gt; -11 [25] =&gt; 19 [26] =&gt; 1 [27] =&gt; -10 [28] =&gt; 4 [29] =&gt; -14 [30] =&gt; 26 [31] =&gt; -1 [32] =&gt; -20 [33] =&gt; 8 [34] =&gt; -17 [35] =&gt; -2 [36] =&gt; -6)
</code></pre>

<p>No non-integers.</p>
