fanfavorite Posted May 30, 2008 Share Posted May 30, 2008 I am trying to make my array keys simulanious. For example: Current Array: [0] => Some Value [4] => Some Value2 [6] => Some Value3 Change To: [0] => Some Value [1] => Some Value2 [2] => Some Value3 I believe I have done this before, but can't remember or find anything that tells me how to do this. Any help is appreciated. Thanks, -JC Quote Link to comment https://forums.phpfreaks.com/topic/108042-solved-make-array-keys-simultanious/ Share on other sites More sharing options...
wildteen88 Posted May 30, 2008 Share Posted May 30, 2008 Use array_values prehaps. Quote Link to comment https://forums.phpfreaks.com/topic/108042-solved-make-array-keys-simultanious/#findComment-553782 Share on other sites More sharing options...
fanfavorite Posted May 30, 2008 Author Share Posted May 30, 2008 lol thanks, I knew there was a simple function, just had a brain fart. Appreciate the quick response! Quote Link to comment https://forums.phpfreaks.com/topic/108042-solved-make-array-keys-simultanious/#findComment-553795 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.