jeeva Posted April 19, 2010 Share Posted April 19, 2010 hi there, I have a array like $arr[0]=array("name"=>"jeeva","gender"=>"M","age"=>"26"); $arr[1]=array("name"=>"mercy","gender"=>"F","age"=>"16"); $arr[2]=array("name"=>"priya","gender"=>"F","age"=>"46"); and i need to search within the array and get the matching record like, i will search like below $name="jeeva"; $gend="M"; And it should give result like $arr[0]=array("name"=>"jeeva","gender"=>"M","age"=>"26"); Could you please give me a solution? Jeeva Quote Link to comment Share on other sites More sharing options...
katierosy Posted April 20, 2010 Share Posted April 20, 2010 array_search function 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.