PHP: re order associative array
<p>In php, I would like to have the ability to re-order an associative array by moving elements to certain positions in the array.  Not necessary a sort, just a re-ordering of my choosing.</p>

<p>As an example, say i have an associative array as follows:</p>

<pre><code>array(
 'a' =&gt; 'Element A',
 'b' =&gt; 'Element B',
 'c' =&gt; 'Element C',
);
</code></pre>

<p>and in one case i may want to move C before B and have the following result:</p>

<pre><code>array(
 'a' =&gt; 'Element A',
 'c' =&gt; 'Element C',
 'b' =&gt; 'Element B',
);
</code></pre>

<p>or in another case i may want to move C before A and have the following result:</p>

<pre><code>array(
 'c' =&gt; 'Element C',
 'a' =&gt; 'Element A',
 'b' =&gt; 'Element B',
);
</code></pre>

<p>What i am trying to show, is simply a method for saying "Hey, i want to move this array element before this other array element" or "Hey, id like to move this array element to make sure that it comes after this other array element'</p>

<p>Hopefully this makes sense!</p>

<p>Thank you to anyone in advance who cares to help me with this</p>
