PHP - Search multidimensional associative array by variable
<p>I have this multidimensional associative array: </p>

<pre><code>$store = array(
array("id" =&gt; 13,"store_id" =&gt; 4,"name" =&gt; "trumpet","type" =&gt; "trumpet567"),
array("id" =&gt; 15,"store_id" =&gt; 3,"name" =&gt; "piano","type" =&gt; "piano689"),
array("id" =&gt; 33,"store_id" =&gt; 1,"name" =&gt; "flute","type" =&gt; "flute267"),
array("id" =&gt; 77,"store_id" =&gt; 3,"name" =&gt; "violin","type" =&gt; "violin324"),
array("id" =&gt; 78,"store_id" =&gt; 2,"name" =&gt; "guitar","type" =&gt; "guitar364"),
array("id" =&gt; 91,"store_id" =&gt; 3,"name" =&gt; "accordion","type" =&gt; "accordion763"));
</code></pre>

<p>and a variable:</p>

<pre><code>$instrument="guitar";
</code></pre>

<p>I need to get store_id for $instrument. I've tried so many things but I've got no solution :(</p>
