title: Comparing arrays and giving out numbers depending on what value is in what array
body: <p>This is more a kind of logical Question. Sometimes i think my Brain is not for programming ;(</p>
  
  <p>What i want to do is.</p>
  
  <p>IF array1 and array2 have the same values setup a new array with keyname to the value that the both array have in common and value = 3 OK i already got that.</p>
  
  <p>Now i want:</p>
  
  <p>IF a value is ONLY in array1 set new array value = 1</p>
  
  <p>IF a value is ONLY in array2 set new array value = 2</p>
  
  <pre><code>$beidesgeht = array_intersect($acc_conf, $ano_conf);
  
  foreach ( $beidesgeht as $be ) {
      $fertig[ $be ] = 3;
  }
  </code></pre>
  
  <p>I guess thats a easy one for you pros. ;)</p>