$key){ $headers[$key] = $matches[2][$index]; } return $headers; } }