title: compare more than two array having the same value in same index
body: <p>My array is <code>$worksheets</code>,</p>
  
  <pre><code>Array ( 
  [0] =&gt; Array ( 
          [0] =&gt; A. Lange &amp; Sohne 
          [1] =&gt; 101.021 
          [2] =&gt; 109021) 
  [1] =&gt; Array ( 
          [0] =&gt; A. Lange &amp; Sohne 
          [1] =&gt; 101.021 
          [2] =&gt; ) 
  [3] =&gt; Array ( 
          [0] =&gt; 
          [1] =&gt; 101.021
          [2] =&gt; ) 
      ) 
  </code></pre>
  
  <p>I'm having nested array.For that I use <code>$total = array_sum(array_map("count", $worksheets));</code> for counting option.</p>
  
  <pre><code>for ($i=0; $i &lt; $total ; $i++) { 
      echo "&lt;/br&gt;";
  
      $sep_ar = $worksheets[$i];
      print_r($sep_ar);
  
      echo "&lt;/br&gt;";
  }
  </code></pre>
  
  <p><code>$sep_ar</code> returns the three arrays in separate array since I print it in a <code>for loop</code></p>
  
  <p>Here,I need to check the array index's of each array.</p>
  
  <p>If <code>Array[0] = A. Lange &amp; Sohne</code> is in another array I would just like to print it.</p>
  
  <p>How should I do this..!!</p>
  
  <p>Thanks..</p>