I have an array:
$list = array('string1', 'string2', 'string3');
I want to get the index for a given value (i.e.
All I want is the position of the strings in the array
- string1 is 0
- string2 is 1
- string3 is 2
How to achieve this?