I have a dynamically built nested array from which i need to drop one or more indexes.
Having scoured the php information pages, i found that using
unset($quotes_array[0]['methods'][3]);
would remove the last set of data in the array.
But, if i try to use
unset($quotes_array[0]['methods'][0]);
or any other set apart from the last, it messes up the output that is generated from the array.
For instance, if i had a,b,c,d: I can remove d without issue, but if i try to remove a, i get a blank radio button followed by b,c, with d missing all together when the array data is processed.
I am assuming i need to reindex the array, but every attempt i've made so far has failed to give the required results, most likely because i'm reindexing $quotes_array, whereas the data i actually need to reindex is that within the 'methods' indices.
Is there a way to fix this issue?