title: array_diff_assoc() values from Multidimensional array()
body: <p>I have this multidimensional array with for loop that I use to breakdown certain number in a function.</p>
  
  <p>However I'd also like to use array_diff_assoc() to get the differences.</p>
  
  <pre><code>for ($i1 = 0; $i1 &lt;= 9; $i1++) {
  
      $scale_0_to_9[$i1];
  
      foreach($splitInThreeArray as $key=&gt;$value) {
  
          if(strlen($value) != '3') {
  
              $value = '';
              $scale_0_to_9[$key]['9'] = $value;
              $scale_0_to_9[$key]['8'] = $value;
              $scale_0_to_9[$key]['7'] = $value;
              $scale_0_to_9[$key]['6'] = $value;
              $scale_0_to_9[$key]['5'] = $value;
              $scale_0_to_9[$key]['4'] = $value;
              $scale_0_to_9[$key]['3'] = $value;
              $scale_0_to_9[$key]['2'] = $value;
              $scale_0_to_9[$key]['1'] = $value;
              $scale_0_to_9[$key]['0'] = $value;
          }else {
              $num_0 = substr_count($value,'0');
              $num_1 = substr_count($value,'1');
              $num_2 = substr_count($value,'2');
              $num_3 = substr_count($value,'3');
              $num_4 = substr_count($value,'4');
              $num_5 = substr_count($value,'5');
              $num_6 = substr_count($value,'6');
              $num_7 = substr_count($value,'7');
              $num_8 = substr_count($value,'8');
              $num_9 = substr_count($value,'9');
  
              $scale_0_to_9[$key]['9'] = $num_9;
              $scale_0_to_9[$key]['8'] = $num_8;
              $scale_0_to_9[$key]['7'] = $num_7;
              $scale_0_to_9[$key]['6'] = $num_6;
              $scale_0_to_9[$key]['5'] = $num_5;
              $scale_0_to_9[$key]['4'] = $num_4;
              $scale_0_to_9[$key]['3'] = $num_3;
              $scale_0_to_9[$key]['2'] = $num_2;
              $scale_0_to_9[$key]['1'] = $num_1;
              $scale_0_to_9[$key]['0'] = $num_0;
          }
      }
  }
  </code></pre>
  
  <p>I have this, but it doesn't work.</p>
  
  <pre><code>array_diff_assoc(
      $scale_0_to_9['0'], $scale_0_to_9['1'],
      $scale_0_to_9['2'], $scale_0_to_9['3'],
      $scale_0_to_9['4'], $scale_0_to_9['5']
  )
  </code></pre>
  
  <p>I'm trying to compare the arrays inside <code>$scale_0_to_9</code> and find at least 2 that have the most similarities. </p>
  
  <p>But it doesn't have to be <code>$scale_0_9['0']</code> as a starting point.</p>
  
  <p>If for example <code>$scale_0_9['2']</code> != <code>$scale_0_9['8']</code> have different values that would work as well.</p>
  
  <p>As long as they don't have the same values. </p>
  
  <p>And I need to know the <code>['2'] $key</code> because I need to match the two that have different values together.</p>