I have an array where the keys are numeric but not sequential, so its:
23, 354, 545, 2333 etc
I now have the value for a key, say 354 and I want to get the next key, in this case 545.
What is the best way to do this? Do I need to loop through the array, match the key and then get the next match. Is there a more efficient method?