title: PHP Array Intersection
body: <p>Maybe someone can help me find the array intersection of a multidemsional array like this one:</p>
  
  <pre><code>[attributes] =&gt; Array
                  (
                      [Color] =&gt; Array
                          (
                              [0] =&gt; Cool White
                              [1] =&gt; Warm White
                          )
  
                      [LED Amount] =&gt; Array
                          (
                              [0] =&gt; 30 LEDs
                          )
  
                  )
  
  [FILTER] =&gt; Array
                  (
                      [Color] =&gt; Array
                          (
                              [0] =&gt; Warm White
                          )
  
                  )
  </code></pre>
  
  <p>I have tried the following code, but the problem is the multi-dimensional array.</p>
  
  <p><code>$intersection = array_intersect($arry['FILTER'], $arry['attributes']);</code></p>
  
  <p>Thanks for your help.</p>