title: in_array() returning false, although I'm sure the needle is in the haystack
body: <p>I'm having a bizarre problem with <code>in_array</code>. For some reason it's returning false on what I'm sure should return true.</p>
  
  <p>The only reason I can think it's doing this is if there's a hidden character or something which I can't see. But I haven't added anything like this while using the variable.</p>
  
  <p><strong>Screen shot of output:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/qKGfb.png" alt="Output"></p>
  
  <p><strong><code>isValidAnswer</code> method:</strong></p>
  
  <pre><code>    /**
       * Return whether this is a valid answer or not
       * 
       * @param mixed $answer
       * @return boolean $validAnswer
       */
      public function isValidAnswer($answer) {
          print($answer . "&lt;br /&gt;"); print_r($this-&gt;answers);
          return in_array($answer, $this-&gt;answers);
      }
  </code></pre>
  
  <p>Any ideas? Thanks.</p>