Searching in php multidimensional array or array which containing another array

function in_multiarray($needles, $haystack) { foreach ($needles as $needle) { // Displays var name & value currently searching for) //echo ‘$needle: ‘.$needle;...

php function group an array on particular key value

function groupArrayOnIdStr($old_arr,$sortText){ $arr = array(); if(@is_array($old_arr)){ foreach($old_arr as $key => $item) { $arr[$item[$sortText]][$key] = $item; } }...