The Little Guy Posted November 12, 2008 Share Posted November 12, 2008 I want to grab the key for a given value. $array = array( 'fruit1' => 'apple', 'fruit2' => 'orange', 'fruit3' => 'grape', 'fruit4' => 'apple'); If I want find the key fro orange, I need the value to return fruit2 how can I do that? Quote Link to comment Share on other sites More sharing options...
Mark Baker Posted November 12, 2008 Share Posted November 12, 2008 By reading the array_search() page of the manual and acting upon it Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted November 12, 2008 Author Share Posted November 12, 2008 Awesome Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.