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.
In reply to Re: "reverse" array match
by Happy-the-monk
in thread "reverse" array match
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |