src/Http/Header.php
protected function parseCacheControl($header)
    {
        $cacheControl = [];
        \preg_match_all('#([a-zA-Z][a-zA-Z_-]*)\s*(?:=(?:"([^"]*)"|([^ \t",;]*)))?#', $header, $matches, PREG_SET_ORDER);
        foreach ($matches as $match) {
            $cacheControl[\strtolower($match[1])] = $match[3] ?? ($match[2] ?? true);
        }

        return $cacheControl;
    }
protected function parseCacheControl($header)
    {
        $cacheControl = [];
        \preg_match_all('#([a-zA-Z][a-zA-Z_-]*)\s*(?:=(?:"([^"]*)"|([^ \t",;]*)))?#', $header, $matches, PREG_SET_ORDER);
        foreach ($matches as $match) {
            $cacheControl[\strtolower($match[1])] = $match[3] ?? ($match[2] ?? true);
        }

        return $cacheControl;
    }
protected function parseCacheControl ( $ header ) { $ cacheControl = [ ] ; \ preg_match_all ( '#([a-zA-Z][a-zA-Z_-]*)\s*(?:=(?:"([^"]*)"|([^ \t",;]*)))?#' , $ header , $ matches , PREG_SET_ORDER ) ; foreach ( $ matches as $ match ) { $ cacheControl [ \ strtolower ( $ match [ 1 ] ) ] = $ match [ 3 ] ?? ( $ match [ 2 ] ?? true ) ; } return $ cacheControl ; }
Parses a Cache-Control HTTP header.

@param string $header The value of the Cache-Control HTTP header

@return array An array representing the attribute values
Parses a Cache - Control HTTP header .