title: First value duplicate in array while using array_search function
body: <p>I am trying to remove duplicates from two dimensional array based on client ID. The script removes all duplicates EXCEPT the first value, first client.</p>
  
  <p>I have tried few more ways of comparing result from array_search to different values, trying to use !== and === with no promising result.</p>
  
  <p>Inserting non numeric value as first in the array, makes everything deduplicate flawlessly.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>// Build client list
  $ClientList = array();
  $counter = 0;
  foreach ($ClientTrans as $order =&gt; $value) {
      $ClientId = $ClientTrans[$order]['customer_id'];
  if (array_search($ClientId, array_column($ClientList, 0)) == FALSE &amp;&amp; is_numeric($ClientId)) {
          $ClientList[$counter][] = $ClientId;
          $counter += 1;
      }
  }
  </code></pre>
  
  <p>The final result is a client and a sum up value from two dimensional array. Everything works as it should except for the first client, that appears multiple times in the new build client list without duplicates.</p>
  
  <p>Here's the Input Array</p>
  
  <pre><code>Array ( 
      [0] =&gt; Array ( 
              [customer_id] =&gt; 50245901 
              [points] =&gt; 299 
      ) 
      [1] =&gt; Array ( 
              [customer_id] =&gt; 50245907 
              [points] =&gt; 3847 
      ) 
      [2] =&gt; Array (
              [customer_id] =&gt; 50245908 
              [points] =&gt; 159 
      ) 
      [3] =&gt; Array ( 
              [customer_id] =&gt; 50245910 
              [points] =&gt; 3175 
      ) 
      [4] =&gt; Array ( 
              [customer_id] =&gt; 50245914 
              [points] =&gt; 641 
      ) 
      [5] =&gt; Array ( 
              [customer_id] =&gt; 50245916 
              [points] =&gt; 449 
      ) 
      [6] =&gt; Array ( 
              [customer_id] =&gt; 50245921 
              [points] =&gt; 551 
      ) 
      [7] =&gt; Array ( 
              [customer_id] =&gt; 50245927 
              [points] =&gt; 0 
      ) 
      [8] =&gt; Array ( 
              [customer_id] =&gt; 50245928 
              [points] =&gt; 602 
      ) 
      [9] =&gt; Array ( 
              [customer_id] =&gt; 50245929 
              [points] =&gt; 495 
      )
      [10] =&gt; Array ( 
              [customer_id] =&gt; 50245931 
              [points] =&gt; 539 
      ) 
      [11] =&gt; Array ( 
              [customer_id] =&gt; 50245941 
              [points] =&gt; 0 
      ) 
      [12] =&gt; Array ( 
              [customer_id] =&gt; 50245901 
              [points] =&gt; 124 
      ) 
      [13] =&gt; Array ( 
              [customer_id] =&gt; 50245901 
              [points] =&gt; 512 
      )
  )
  </code></pre>
  
  <p>And desired output - customer id 50245901 is not appearing multiple times:</p>
  
  <pre><code>Array ( 
      [0] =&gt; Array ( 
              [customer_id] =&gt; 50245901 
      ) 
      [1] =&gt; Array ( 
              [customer_id] =&gt; 50245907 
      ) 
      [2] =&gt; Array ( 
          [customer_id] =&gt; 50245908 
      ) 
      [3] =&gt; Array ( 
          [customer_id] =&gt; 50245910 
      ) 
      [4] =&gt; Array ( 
          [customer_id] =&gt; 50245914 
      ) 
      [5] =&gt; Array ( 
          [customer_id] =&gt; 50245916 
      ) 
      [6] =&gt; Array ( 
          [customer_id] =&gt; 50245921 
      ) 
      [7] =&gt; Array ( 
          [customer_id] =&gt; 50245927 
      ) 
      [8] =&gt; Array ( 
          [customer_id] =&gt; 50245928 
      ) 
      [9] =&gt; Array ( 
          [customer_id] =&gt; 50245929 
      ) 
      [10] =&gt; Array ( 
          [customer_id] =&gt; 50245931 
      )
  )
  </code></pre>