Remove item from multidimensional array php
<p>Here is the array:</p>

<pre><code> [cart] =&gt; Array
        (
            [ProductId] =&gt; Array
                (
                    [0] =&gt; P121100001
                    [1] =&gt; P121100002
                )

            [SellerId] =&gt; Array
                (
                    [0] =&gt; S12110001
                    [1] =&gt; S12110001
                )

            [SpecifyId] =&gt; Array
                (
                    [0] =&gt; 1
                    [1] =&gt; 2
                )

            [Quantity] =&gt; Array
                (
                    [0] =&gt; 1
                    [1] =&gt; 1
                )

            [Price] =&gt; Array
                (
                    [0] =&gt; 12
                    [1] =&gt; 29
                )

            [TotalPrice] =&gt; 41
        )
</code></pre>

<p>I have the ProductId and I want to remove all the other items matching P121100002's key.</p>

<p>Is there an easy way to do this I can't can seem to come up with one?</p>
