title: How to move an array object to position 0
body: <p>I am currently working with an array and I need to know how to move an object within that array to the first position, position [0].</p>
  
  <p>I have this</p>
  
  <pre><code>&lt;?php    
  $extensions = array(
          '.com'      =&gt; array('whois.verisign-grs.com','No match for'),
          '.info'     =&gt; array('whois.afilias.net','NOT FOUND'),  
          '.net'      =&gt; array('whois.crsnic.net','No match for'),
          '.co.uk'    =&gt; array('whois.nic.uk','No match'),        
          '.nl'       =&gt; array('whois.domain-registry.nl','is free'),
      );
  ?&gt;
  </code></pre>
  
  <p>Now, when the user chooses a domain from the dropdown, I want the selected TLD to be the first in this array.</p>
  
  <p>For ex.</p>
  
  <p>User chooses the .net domain, the array wil be:</p>
  
  <pre><code>$extensions = array(
          '.net'      =&gt; array('whois.crsnic.net','No match for'),
          '.com'      =&gt; array('whois.verisign-grs.com','No match for'),
          '.info'     =&gt; array('whois.afilias.net','NOT FOUND'),  
          '.co.uk'    =&gt; array('whois.nic.uk','No match'),        
          '.nl'       =&gt; array('whois.domain-registry.nl','is free'),
      );
  </code></pre>