I have a multi-dimensional array in the following format:
[0] = ( \'id\' => \'1\', \'type\' => \'fish\', \'owner\' => \'bob\', ) [1] =
you must iterate array like:
foreach ($array as $i => $values) { print "$i {\n"; foreach ($values as $key => $value) { print " $key => $value\n"; } print "}\n"; }
and then check for 'type' key value.... then record which is matched must copy it to new array...