title: String not in array?
body: <p>I'm having troubles with determining if someone is in an array or not:</p>
  
  <pre><code>&lt;?php
      $depts = $db-&gt;query("SELECT depts FROM tbl_staff WHERE id = '".$_SESSION['exp_user']['userid']."'");
      $department = $depts-&gt;fetch_assoc();
  
      if (!in_array($forumdn['permissions'],$department)) {
             error_404("Permissions Violation");
             return;
      }
  
  ?&gt;
  </code></pre>
  
  <p>The value of <code>$forumdn['permissions']</code> given by <code>var_dump</code> is: <code>string(1) "0"</code></p>
  
  <p>The value of <code>$department</code> given by <code>var_dump</code> is: </p>
  
  <p><code>array(1) { ["depts"]=&gt; string(13) "0,1,2,3,4,5,6" }</code></p>
  
  <p>Any ideas?</p>