stuck with array_merge, need specific key value arrangement inside foreach loop
<p>I've following PHP code:</p>

<pre><code>$age = array_merge($age,array(get_user_meta($comment-&gt;user_id, 'wsl_user_age', true)));
</code></pre>

<p>This produces:</p>

<pre><code>Array
(
    [0] =&gt; 26
    [1] =&gt; 
    [2] =&gt; 18
    [3] =&gt; 28
    [4] =&gt; 22
    [5] =&gt; 21
    [6] =&gt; 26
    [7] =&gt; 
    [8] =&gt; 
    [9] =&gt; 
    [10] =&gt; 
    [11] =&gt; 
    [12] =&gt;
    [13] =&gt;
    [14] =&gt;
    [15] =&gt;
    [16] =&gt;
    [17] =&gt;
    [18] =&gt;
    [19] =&gt;
    [20] =&gt;
)
</code></pre>

<p>What I'd like to have is 26 18 etc as keys. And values number of times it repeats, in essence duplicate count.           </p>

<p>I tried:</p>

<pre><code>$age = array_merge($age,array(get_user_meta($comment-&gt;user_id, 'wsl_user_age', true)=&gt; ""))
</code></pre>

<p>But this produced absolute nonsense.</p>

<p>What should I try?</p>
