Extract element from associative array
<p>How do I extract an element from an associative array?</p>

<pre><code>$array = array(
   "smart" =&gt; "dog",
   "stupid" =&gt; "cat",
   "nasty" =&gt; "frog",
   "big" =&gt; "elephant"
);
</code></pre>

<p>I need to remove the element with key "nasty" to push it in the end of the array. I don't know the index of the element in the array. How can I achieve this? (I'm using first, second, third but the names of the keys are different and not indexed by a logic! I need to remove the element just by its key).</p>
