public function getId($type, $subtype) { foreach ($this->subtypes as $id => $row) { if ($row['type'] == $type && $row['subtype'] == $subtype) { return $id; } } return false; }