Jump to content

move array names?


ohdang888

Recommended Posts

ok so my arry's are set up like this:

 

test[1] = blah

test[2] = blah

test[3] = test

test[4] = confused

etc.

 

and sometimes there are duplciates stored, so i used array_unique()... so that leaves so number 2 empty...

is there anyway to move all the stored variable the lowest.. to make it like this:

 

test[1] = blah

test[2] = test

test[3] = confused

 

but it won't always be number 2, it changes...

Link to comment
https://forums.phpfreaks.com/topic/101102-move-array-names/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.