title: How do i count same values in an array and store it to a variable?
body: <pre><code>$items = explode(',',$product); // values is 4,2,4,2,2,4
  
  $unique_items=array_unique($items); // gives me 4,2
  </code></pre>
  
  <p>What code should be next to give me 4 = 3 , 2 = 3 and store the number of values to a variable?</p>