I didn't know how to do it in any way other than a *nested* "foreach" loop. On an array with tens of thousands of items, and needing to iterate through the entire array for a list of thousands of words/phrases, I might have been waiting a long time.
I wish it were easier to search online for specific coding issues with programming. Sigh.
Your solution works for me. Thank you very much.
In reply to Re^2: How to count substitutions on an array
by Anonymous Monk
in thread How to count substitutions on an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |