title: Check if the array contain multiple same values in php
body: <p>I have a array like below</p>
  
  <pre><code>$array1 = Array
  (
      [0] =&gt; 20225,2017-02-20
      [1] =&gt; 20225,2017-02-20
      [2] =&gt; 10027,2017-02-20
      [3] =&gt; 10027,2017-02-20
      [4] =&gt; 10021,2017-02-20
      [5] =&gt; 20205,2017-02-20
      [6] =&gt; 50003,2017-02-20
      [7] =&gt; 20225,2017-02-20
      [8] =&gt; 20205,2017-02-20
      [9] =&gt; 10021,2017-02-20
      [10] =&gt; 50003,2017-02-20
      [11] =&gt; 10027,2017-02-20
      [12] =&gt; 20225,2017-02-20
      [13] =&gt; 20225,2017-02-21
      [14] =&gt; 20225,2017-02-21
  )
  </code></pre>
  
  <p>if the array contain same result more than 2, I want to get one of those values to another array called <code>$array2</code>.</p>
  
  <p>Please help me to do this</p>