How to split multidimensional array PHP
<p>I have a multi dimensional array like </p>

<pre><code>$array = array ( [0] =&gt; array ([0] =&gt; 'stack1', [1] =&gt; 'stack2'),
                 [1] =&gt; array ([0] =&gt; 'exchange1', [1] =&gt; 'exchange2'),
         [2] =&gt; array ([0] =&gt; 'overflow1', [1] =&gt; 'overflow2'),
         [3] =&gt; array ([0] =&gt; 'super1', [1] =&gt; 'super2')
     );
</code></pre>

<p>How can i split array having specific words like 'overflow', i have to shift it to two arrays like below.
After that i want to loop.</p>

<pre><code>$array1 = array ( [0] =&gt; array ([0] =&gt; 'stack1', [1] =&gt; 'stack2'),
                 [1] =&gt; array ([0] =&gt; 'exchange1', [1] =&gt; 'exchange2'),
          [2] =&gt; array ([0] =&gt; 'super1', [1] =&gt; 'super2')
        );

$array2 = array ( [0] =&gt; array ([0] =&gt; 'overflow1', [1] =&gt; 'overflow2') );
</code></pre>

<p>How can i achieve this using php</p>
