title: PHP Array_search won't find an existing value
body: <p>I'm trying to use array_search on a simple array :</p>
  
  <pre><code>        echo "&lt;br&gt; Search for : -".ucfirst(strtolower(trim($rowData[0][2]))).'-';
  </code></pre>
  
  <p>here is the index of the value ( I know it but I want PHP to find it for me >&lt; ):</p>
  
  <pre><code>        echo '&lt;br&gt;-'.$listMetiers[0].'-'; 
  </code></pre>
  
  <p>Here is the full array :</p>
  
  <pre><code>        echo '&lt;pre&gt;';
          print_r($listMetiers);
          echo '&lt;/pre&gt;';
  
          $id_metier = array_search(ucfirst(strtolower(trim($rowData[0][2]))),$listMetiers);
  
          if(!$id_metier)
          {
            echo ' NOT FOUND !&lt;br&gt;';
            $id_metier = -666;
          }
          else
          {
            echo 'GOOD : '.$id_metier.'&lt;br&gt;';
          }
  </code></pre>
  
  <p>The value is in the array but array_search don't find it ! Look what I have when executing this code :</p>
  
  <p><a href="https://i.stack.imgur.com/8zw12.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8zw12.png" alt="enter image description here"></a></p>
  
  <p>What is going on ?</p>