[SOLVED] Unset array and then shift next one to fill in...?
Posted: Thu Aug 19, 2004 6:05 am
When I unset array it indeed removes the element I wanted to get rid of but instead of shifting the array it simply skips it so it looks like:
Array
(
[1] => string2
[3] => string3
)
In other words, [0] & [2] have been skipped in this example. How can I make it so that the resulting array looks like:
Array
(
[0] => string2
[1] => string3
)
Thanks!
Tomas
Array
(
[1] => string2
[3] => string3
)
In other words, [0] & [2] have been skipped in this example. How can I make it so that the resulting array looks like:
Array
(
[0] => string2
[1] => string3
)
Thanks!
Tomas