title: Unable to understand in_array()
body: <pre><code>&lt;?php
  $whitelist = array('contact', 'about', 'user');
  $_GET['page'] = array('contact');
  $test = $_GET['page'];
  if(isset($test))
  {
    if(in_array($whitelist, $test))
    {
      $got = $test;
      echo $got;
    }
    else 
    {
      $got = 'home';
      echo $got;  
    }
  }
  ?&gt;
  </code></pre>
  
  <p>Now here, I should get the result as 'contact' but I'm getting 'home'. Why is that ?</p>