kirkh34 Posted November 6, 2010 Share Posted November 6, 2010 i have checkboxes in a form with the name="array[]" and in the php i use the implode function to separate all the values of all that was checked with a comma....my question is... how can i set the order of the array a certain way... i'd like to ultimately have a field where if you check a box you can enter into the field 1, 2, 3, 4 and so on and when you submit the form it will set the order according to what was entered thanks Quote Link to comment https://forums.phpfreaks.com/topic/217906-help-with-setting-order-of-array/ Share on other sites More sharing options...
Adam Posted November 6, 2010 Share Posted November 6, 2010 There's a collection of sort functions that may be useful to you, including usort which allows you call a function which decides on the order logic. Quote Link to comment https://forums.phpfreaks.com/topic/217906-help-with-setting-order-of-array/#findComment-1131022 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.