title: Matching partial assoc array in bigger assoc array
body: <p>I have two arrays:</p>
  <pre><code>$array1 = [
      'user_id' =&gt; '1234567890', 
      'customer_id' =&gt; [
          '889599494514048876' =&gt; [admin =&gt; true],
          '006994743818411627' =&gt; [admin =&gt; false],
          '259960192293339276' =&gt; [admin =&gt; false]
      ]
  ];
  </code></pre>
  <pre><code>$array2 = [
      'customer_id' =&gt; [
          '259960192293339276' =&gt; [admin =&gt; false]
      ]
  ];
  </code></pre>
  <p>I want to check if array2 exists in array1.</p>
  <p>&quot;Ideally&quot; the solution would be dynamic, so no matter how nested or different the array structure is, it would still work. Any solution or ideas are still much appreciated though, as I'm quite stuck.</p>
  <p>I've looked at array_intersect and array_uintersect, though I haven't gotten them to work like I would have wanted.</p>