Hey there,
I have a code generated array which looks like this:
Array ( [4] => bus [5] => speed [6] => connector [7] => duplex [8] => extras )
Now I just want it re-indexed from 0 so it will look like this:
Array ( [0] => bus [1] => speed [2] => connector [3] => duplex [4] => extras )
I have searched all over the web for a simple solution, there should even imo be a simple command to do this, i.e. something like a reset_index() function.
The only thing I found which came remotely close to solving my problem was the sort() function, it re-indexes like I want but it alters the order of the items in the array and that is not wanted.
All help is much appreciated!
/K