Hello.. I'm hope someone can help me with this problem...
lets say I have an array like this...
$Array[0] = "Apples"
$Array[1] = "Oranges"
$Array[2] = "Grapes"
$Array[3] = "Pears"
What I want to do is swap the index of "0" with the index of "2" so that my array will look like this.
$Array[0] = "Grapes"
$Array[1] = "Oranges"
$Array[2] = "Apples"
$Array[3] = "Pears"
The changes are noted in BOLD
How can I do this?