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
[SOLVED] Unset array and then shift next one to fill in...?
Moderator: General Moderators
-
tomfra
- Forum Contributor
- Posts: 126
- Joined: Wed Jun 23, 2004 12:56 pm
- Location: Prague, Czech Republic
[SOLVED] Unset array and then shift next one to fill in...?
Last edited by tomfra on Thu Aug 19, 2004 7:10 am, edited 1 time in total.
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany