jberiksen Posted August 16, 2011 Share Posted August 16, 2011 I want to find a specific array in an array of arrays, but can't get i working. $adresse = "Array([adresse] => Test [postnummer] => 2000 )"; $key = array_search($adresse,$adresser); //Jesper Link to comment https://forums.phpfreaks.com/topic/244942-find-array-in-array-of-arrays/ Share on other sites More sharing options...
The Little Guy Posted August 16, 2011 Share Posted August 16, 2011 That doesn't really make sense.... but Ill try my best. $array = array( "array1" => array(), "array2" => array(), "array3" => array() ); $is_array = is_array($array['array1']); if($is_array) echo "this array exists!"; else echo "this array does not exist "; Link to comment https://forums.phpfreaks.com/topic/244942-find-array-in-array-of-arrays/#findComment-1258213 Share on other sites More sharing options...
jberiksen Posted August 16, 2011 Author Share Posted August 16, 2011 Yes that work but i have to get the id of the array and not only the if it exist Link to comment https://forums.phpfreaks.com/topic/244942-find-array-in-array-of-arrays/#findComment-1258214 Share on other sites More sharing options...
The Little Guy Posted August 16, 2011 Share Posted August 16, 2011 That doesn't make sense. Link to comment https://forums.phpfreaks.com/topic/244942-find-array-in-array-of-arrays/#findComment-1258220 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.