maddogandnoriko Posted May 17, 2009 Share Posted May 17, 2009 I have an array that has had elements removed so the keys are as such: 3,4,6,9 etc. I now need to retrieve a specific range of elements for pagination, ie. 0-10, is it possible to just renumber the keys 0-whatever? Thank you Todd Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 17, 2009 Share Posted May 17, 2009 Cheap way array_merge(array(), $array); Quote Link to comment Share on other sites More sharing options...
sasa Posted May 17, 2009 Share Posted May 17, 2009 array_values() function Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 17, 2009 Share Posted May 17, 2009 array_values() function Nice one. sasa karma++ Quote Link to comment Share on other sites More sharing options...
maddogandnoriko Posted May 17, 2009 Author Share Posted May 17, 2009 exactly what was needed! Thank you very much. Todd Quote Link to comment 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.