title: PHP - Duplicate values in an array
body: <p>Say I had this code</p>
  
  <pre><code>$x = array("a", "b", "c", "d", "e");
  </code></pre>
  
  <p>Is there any function that I could call after creation to duplicate the values, so in the above example <code>$x</code> would become</p>
  
  <pre><code>array("a", "b", "c", "d", "e", "a", "b", "c", "d", "e");
  </code></pre>
  
  <p>I thought something like this but it doesn't work</p>
  
  <p>$x = $x + $x;</p>