title: How can I check if a value is in my array?
body: <p>This is my array <code>$data</code>:</p>
  
  <pre><code>array(3) {
     [0]=&gt;
        string(4) "icon"
     [1]=&gt;
        string(6) " image"
     [2]=&gt;
        string(12) " description"
  }
  </code></pre>
  
  <p>I try to find out if a value is existing in my array:</p>
  
  <pre><code>if (in_array("description", $data))
  {
      echo "Match found";
  }
  else
  {
      echo "Match not found";
  }
  </code></pre>
  
  <p>But my result is <code>Match not found</code></p>
  
  <p>I am at a loss.</p>