title: How can I check if two array are same
body: <p>This is my array</p>
  
  <pre><code>[51] =&gt; Array
      (
          [171] =&gt; 34
          [170] =&gt; Adult
          [168] =&gt; 32
          [quantity] =&gt; 1
      )
  
  [52] =&gt; Array
      (
          [171] =&gt; 34
          [170] =&gt; Adult
          [168] =&gt; 32
          [quantity] =&gt; 1
      )
  </code></pre>
  
  <p>Now if all the keys and value except quantity are same then the quantity will be added.</p>
  
  <p>ex:</p>
  
  <pre><code> [51] =&gt; Array
      (
          [171] =&gt; 34
          [170] =&gt; Adult
          [168] =&gt; 32
          [quantity] =&gt; 2
      )
  </code></pre>
  
  <p>Is there any way to search with dynamic keys.
  Please help.</p>