in reply to Evaluates two array index
You might learn something from looking at his code (it's obfu-ed, but not so much that you won't understand it).