SyntaxFix
Write A Post
Hire A Developer
Questions
Could you be a little more specific?
$key = array_search('string2',$list)
works fine for me. Are you trying to accomplish something more complex?