title: Reverse array values while keeping keys
body: <p>Here is an array I have:</p>
  
  <pre><code>$a = array('a' =&gt; 'a1', 'b' =&gt; 'a2', 'c' =&gt; 'a3', 'd' =&gt; 'a4', 'e' =&gt; 'a5');
  </code></pre>
  
  <p>What I would like to do is reverse the values of the array while keeping the keys intact, in other words it should look like this:</p>
  
  <pre><code>$a = array('a' =&gt; 'a5', 'b' =&gt; 'a4', 'c' =&gt; 'a3', 'd' =&gt; 'a2', 'e' =&gt; 'a1');
  </code></pre>
  
  <p>How should I go about it?</p>
  
  <p>P.S.  I tried using <code>array_reverse()</code> but it didn't seem to work</p>