title: Swap array values with php
body: <p>I have an array:</p>
  
  <pre><code>array(
      0 =&gt; 'contact',
      1 =&gt; 'home',
      2 =&gt; 'projects'
  );
  </code></pre>
  
  <p>and I need to swap the 'contact' with 'home', so the array would be like:</p>
  
  <pre><code>array(
      0 =&gt; 'home',
      1 =&gt; 'contact',
      2 =&gt; 'projects'
  );
  </code></pre>
  
  <p>how can I do this with PHP? :)</p>