I have an array and I\'d like to search for the string \'green\'. So in this case it should return the $arr[2]
\'green\'
$arr[2]
$arr = array(0 =>
"red","b"=>"green","c"=>"blue"); echo array_search("red",$a); ?>
I have same problem so try this...