title: How do I move an array element with a known key to the end of an array in PHP?
body: <p>Having a brain freeze over a fairly trivial problem. If I start with an array like this:</p>
  
  <pre><code>$my_array = array(
                    'monkey'  =&gt; array(...),
                    'giraffe' =&gt; array(...),
                    'lion'    =&gt; array(...)
  );
  </code></pre>
  
  <p>...and new elements might get added with different keys but always an array value. Now I can be sure the first element is always going to have the key 'monkey' but I can't be sure of any of the other keys.</p>
  
  <p>When I've finished filling the array I want to move the known element 'monkey' to the end of the array without disturbing the order of the other elements. What is the most efficient way to do this?</p>
  
  <p>Every way I can think of seems a bit clunky and I feel like I'm missing something obvious.</p>