make a particular element to be first in array
<p>I've an array like this</p>

<pre><code>$arrList = Array ( 
     [0] =&gt; Array
        (
          [master] =&gt; Array
                (
                  [id] =&gt; 3
                  [name] =&gt; Test
                )
        )

     [1] =&gt; Array
        (
          [master] =&gt; Array
                (
                  [id] =&gt; 4
                  [name] =&gt; Sample
                )
        )
  )
</code></pre>

<p>Now, I know the value of the <code>id</code>,how can I re-arrange with the particular value of <code>id</code> to be on the top..(i.e.,whatever the value of <code>id</code> that I have in a variable that should be on top of the array, if I get the value of <code>id</code> as 4 then the array should be</p>

<pre><code>$arrList = Array ( 
         [0] =&gt; Array
            (
              [master] =&gt; Array
                    (
                      [id] =&gt; 4
                      [name] =&gt; Sample
                    )
            )

         [1] =&gt; Array
            (
              [master] =&gt; Array
                    (
                      [id] =&gt; 3
                      [name] =&gt; Test
                    )
            )
      )
</code></pre>

<p>thanks in advance..</p>
