Hi
Is there a way to find out what the KEY of an array is by using the array VALUE as the search criteria?
E.g. I have the following array:
Array
(
[0] => 1
[1] => 'two'
[2] => 3
[3] => 4
[4] => 'not 5'
[5] => 6
[6] => 7
[7] => 'another test'
[8] => 9
[9] => 'test example'
[10] => 11
[11] => 12
[12] => 13
[13] => 14
[14] => 15
[15] => 16
[16] => 17
[17] => 'blah blah'
[18] => 19
[19] => 20
[20] => 21
}
So while I am looping through the array above, I am looking for the key where the value matches 'blah blah'.
Thanks for reading.