title: PHP inverse for array_diff_assoc(), remove duplicate values
body: <p>I haver permissions levels system, so i need remove from my array my previos selected permissions. For example:</p>
  
  <pre><code>My permissions:  read, write
  All permissions: read, write, update, delete
  I need return:   update, delete
  </code></pre>
  
  <p>The problem: <code>array_diff_assoc</code>() compare exact keys, [0] = [0], i need compare values not keys, and return all permission without, my previos selected permissions, not removed values.</p>
  
  <pre><code>res['all_withou_pre_selected_permissions'] = array_diff_assoc($all_permissions,$res['my_permissions']);
  print_r($res['all_withou_pre_selected_permissions']);
  </code></pre>
  
  <p>My arrays and return</p>
  
  <pre><code>My permissions
  array(2) {
    [0]=&gt;
    array(6) {
      ["Modulo"]=&gt;
      string(15) "Administradores"
      [0]=&gt;
      string(15) "Administradores"
      ["Tipo"]=&gt;
      string(9) "Adicionar"
      [1]=&gt;
      string(9) "Adicionar"
      ["Nome"]=&gt;
      string(3) "kin"
      [2]=&gt;
      string(3) "kin"
    }
    [1]=&gt;
    array(6) {
      ["Modulo"]=&gt;
      string(15) "Administradores"
      [0]=&gt;
      string(15) "Administradores"
      ["Tipo"]=&gt;
      string(7) "Excluir"
      [1]=&gt;
      string(7) "Excluir"
      ["Nome"]=&gt;
      string(3) "kin"
      [2]=&gt;
      string(3) "kin"
    }
  }
  
  All Permissions
  array(8) {
    [0]=&gt;
    array(4) {
      ["Modulo"]=&gt;
      string(15) "Administradores"
      [0]=&gt;
      string(15) "Administradores"
      ["Tipo"]=&gt;
      string(9) "Adicionar"
      [1]=&gt;
      string(9) "Adicionar"
    }
    [1]=&gt;
    array(4) {
      ["Modulo"]=&gt;
      string(15) "Administradores"
      [0]=&gt;
      string(15) "Administradores"
      ["Tipo"]=&gt;
      string(6) "Editar"
      [1]=&gt;
      string(6) "Editar"
    }
    [2]=&gt;
    array(4) {
      ["Modulo"]=&gt;
      string(15) "Administradores"
      [0]=&gt;
      string(15) "Administradores"
      ["Tipo"]=&gt;
      string(7) "Excluir"
      [1]=&gt;
      string(7) "Excluir"
    }
    [3]=&gt;
    array(4) {
      ["Modulo"]=&gt;
      string(15) "Administradores"
      [0]=&gt;
      string(15) "Administradores"
      ["Tipo"]=&gt;
      string(3) "Ler"
      [1]=&gt;
      string(3) "Ler"
    }
  
  Return of PHP code
  
  array(6) {
    [2]=&gt;
    array(4) {
      ["Modulo"]=&gt;
      string(15) "Administradores"
      [0]=&gt;
      string(15) "Administradores"
      ["Tipo"]=&gt;
      string(7) "Excluir"
      [1]=&gt;
      string(7) "Excluir"
    }
    [3]=&gt;
    array(4) {
      ["Modulo"]=&gt;
      string(15) "Administradores"
      [0]=&gt;
      string(15) "Administradores"
      ["Tipo"]=&gt;
      string(3) "Ler"
      [1]=&gt;
      string(3) "Ler"
    }
  </code></pre>