PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
If the array is sorted it's really easy. Pick two adjacent indexes - call them A and B: if array[A]+array is <10 what would you do? If array[A]+array is >10 what would you do?