title: Associative array move last element to first
body: <p>I have an array</p>
  
  <pre><code>array(
  'key1'=&gt;'value1',
  'key2'=&gt;'value2',
  'key3'=&gt;'value3'
  )
  </code></pre>
  
  <p>I want create it like</p>
  
  <pre><code>array(
  'key3'=&gt;'value3',
  'key1'=&gt;'value1',
  'key2'=&gt;'value2'
  )
  </code></pre>
  
  <p>I just want to move the last element to first with key value pair keeping all other details as it is.</p>