foreach()-How to find out which index number you're on?
While looping through a multidimensional array with foreach(), how do you know which index you are on? Reason being: if you want to search through the multi. array to delete a value, there may be two instances of the same value. So, I figured the index would be unique to the value. I just don't know how to find the value of the index once the foreach() loop has found the item to delete.
Any help would be greatly appreciated!