If I had the following array:
Array(
[0] => 30
[1] => 60
[2] => 2
[3] => 55
[4] => 1
[5] => 20
[6] => 1
[7] => 8
[8] => 38
[9] => 58
[10] => 12
)
How would I delete the first element and then add a new element to the end. So the new array would look like this:
Array(
[0] => 60
[1] => 2
[2] => 55
[3] => 1
[4] => 20
[5] => 1
[6] => 8
[7] => 38
[8] => 58
[9] => 12
[9] => 10
)
I could use array_push to add to the end but then how would I delete the first element and reposition the keys?