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 will become
array("a", "b", "c", "d", "e", "a", "b", "c", "d", "e");
I thought something like this, but it does not work.
$ x = $ x + $ x;
source share