For instance, I have an array:
$x = array("a", "b", "c", "d", "e");
Is there any function to iterate all values of array and duplicate the values into:
$x = array("a", "a", "b", "b", "c", "c", "d", "d", "e", "e");
I've not found any related solution after googled it for a while.
Thanks so much!