Something like this? It will iterate through your array and you can search for a specific value and type.
I don’t want to go into too much detail as your question isn’t entirely clear.
function get_rows_by_type($array, $type, $val)
{
$output = array();
foreach ($array as $a) {
if ($a[$type] === $val) {
$output[] = $a;
}
}
return $output;
}
var_dump (get_rows_by_type($arr, 'msisdn', 10));
solved Return rows from a multidimensional array with same value in php [closed]