title: Array unsetting keys
body: <p>Straight to the point...</p>
  
  <p>I have an array (<code>$is_anonymous_ary</code>) that looks like this:</p>
  
  <pre><code>array (
    [80] =&gt; 1
    [57] =&gt; 1
    [66] =&gt;
    [60] =&gt; 
    [90] =&gt; 1
  )
  </code></pre>
  
  <p>And another array (<code>$user_id_ary</code>) like this one:</p>
  
  <pre><code>array (
    [0] =&gt; 80
    [1] =&gt; 30
    [2] =&gt; 57
    [3] =&gt; 89
    [4] =&gt; 66
    [5] =&gt; 60
    [6] =&gt; 90
  )
  </code></pre>
  
  <p>I need to unset values on the <code>$user_id_ary</code> based on the first array. So, if the value from <code>$is_anonymous_ary</code> is 1 (true), then take the key from that array, check against <code>$user_id_ary</code>, and unset the keys from <code>$user_id_ary</code> which had the value from the keys from <code>$is_anonymous_ary</code>.</p>
  
  <p>I complicated the description a bit, here is how I need my final result:</p>
  
  <pre><code>user_id_ary = array(
    [0] =&gt; 30
    [1] =&gt; 89
    [2] =&gt; 66
    [3] =&gt; 60
  )
  </code></pre>
  
  <p>As you see all keys from the <code>$is_anonymous_ary</code> that had a <code>TRUE</code> value, are gone in the second array. which had the keys from the first array as values in the second array.</p>
  
  <p>Hope I made myself clear.</p>