Jump to content

search in muti-array


jeeva

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.