title: array_diff not working as expected ? What could be the reason?
body: <p>I have <strong>two arrays</strong> .<br>
  Check the code  </p>
  
  <pre><code>$array1 = array(0=&gt;'215',1=&gt; '225');
  $array2 = array(0=&gt;'225');
  $diff_result = array_diff($array1, $array2);
  $diff = array_values($diff_result);
  print_r($array1);echo "&lt;br&gt;";
  print_r($array2);echo "&lt;br&gt;";
  print_r($diff_result);echo "&lt;br&gt;";
  print_r($diff);
  </code></pre>
  
  <p>Now I am getting answers as</p>
  
  <pre><code>Array ( [0] =&gt; 215 [1] =&gt; 225 )
  Array ( [0] =&gt; 225 )
  Array ( [0] =&gt; 215 [1] =&gt; 225 )
  Array ( [0] =&gt; 215 [1] =&gt; 225 ) 
  </code></pre>
  
  <p>But according to <a href="http://php.net/manual/en/function.array-diff.php" rel="nofollow">array_diff</a> manual it should be  </p>
  
  <pre><code>Array ( [0] =&gt; 215 [1] =&gt; 225 ) 
  Array ( [0] =&gt; 225 ) 
  Array ( [0] =&gt; 215 ) 
  Array ( [0] =&gt; 215 )
  </code></pre>
  
  <p>What could be the problem</p>