private function parseSectionFromHeaderAndItemAsArray(
        array $header,
        string $section,
        array $item
    ) {
        return array_intersect_key(
            $item,
            array_flip($header[$section] ?? [])
        );
    }
private function parseSectionFromHeaderAndItemAsArray(
        array $header,
        string $section,
        array $item
    ) {
        return array_intersect_key(
            $item,
            array_flip($header[$section] ?? [])
        );
    }
private function parseSectionFromHeaderAndItemAsArray ( array $ header , string $ section , array $ item ) { return array_intersect_key ( $ item , array_flip ( $ header [ $ section ] ?? [ ] ) ) ; }
Parse section fields from item having header.

@param array  $header
@param string $section
@param array  $item

@return array
Parse section fields from item having header .