Say I had this code
$x = array("a", "b", "c", "d", "e");
Is there any function that I could call after creation to duplicate the values, so in the above example $x would become
array("a", "b", "c", "d", "e", "a", "b", "c", "d", "e");
I thought something like the following but it doesn’t work.
$x = $x + $x;
Merging an array onto itself will repeat the values as duplicates in sequence.