I was having a little trouble with my array in PHP.
I have the following the array:
Array
(
[0] => banana
[1] => apple
[2] => raspberry
[3] => kiwi
[4] => cherry
[5] => nuts
)
But I want to kick out 'kiwi' and shift all other keys up, to get the following...
Array
(
[0] => banana
[1] => apple
[2] => raspberry
[3] => cherry
[4] => nuts
)
I am sure someone here knows how to get it done, php's shift only takes to first key and not something specific.
Thanks in advance