[Solved] Return rows from a multidimensional array with same value in php [closed]
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; … Read more