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 Link to comment https://forums.phpfreaks.com/topic/198996-search-in-muti-array/ Share on other sites More sharing options...
katierosy Posted April 20, 2010 Share Posted April 20, 2010 array_search function Link to comment https://forums.phpfreaks.com/topic/198996-search-in-muti-array/#findComment-1045179 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.