in reply to "reverse" array match

traverse the array with a foreach loop and count, use   last   when you have found your match. Not as spiffy as a   grep   or   map,   but it might be even faster.