title: PHP in_array isn't finding a value that is there
body: <p>I have an array called $friend_array.  When I print_r($friend_array) it looks like this:</p>
  
  <pre><code>Array ( [0] =&gt; 3,2,5 ) 
  </code></pre>
  
  <p>I also have a variable called $uid that is being pulled from the url.</p>
  
  <p>On the page I'm testing, $uid has a value of 3 so it is in the array.</p>
  
  <p>However, the following is saying that it isn't there:</p>
  
  <pre><code>if(in_array($uid, $friend_array)){
    $is_friend = true;
  }else{
    $is_friend = false;
  </code></pre>
  
  <p>This always returns false.  I echo the $uid and it is 3.  I print the array and 3 is there.</p>
  
  <p>What am I doing wrong?  Any help would be greatly appreciated!</p>