Is there a nicer way to find the index number matching a string in an array rather than doing foreach and going through every line?
I know grep can be used to find is the string is there, but it does not give the index number.
Thank you.
In reply to finding index number in an array by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |