src/Vimeo/Vimeo.php
public static function parse_headers(string $headers): array
    {
        $final_headers = array();
        $list = explode("\n", trim($headers));

        $http = array_shift($list);

        foreach ($list as $header) {
            $parts = explode(':', $header, 2);
            $final_headers[trim($parts[0])] = isset($parts[1]) ? trim($parts[1]) : '';
        }

        return $final_headers;
    }
public static function parse_headers(string $headers): array
    {
        $final_headers = array();
        $list = explode("\n", trim($headers));

        $http = array_shift($list);

        foreach ($list as $header) {
            $parts = explode(':', $header, 2);
            $final_headers[trim($parts[0])] = isset($parts[1]) ? trim($parts[1]) : '';
        }

        return $final_headers;
    }
public static function parse_headers ( string $ headers ) : array { $ final_headers = array ( ) ; $ list = explode ( "\n" , trim ( $ headers ) ) ; $ http = array_shift ( $ list ) ; foreach ( $ list as $ header ) { $ parts = explode ( ':' , $ header , 2 ) ; $ final_headers [ trim ( $ parts [ 0 ] ) ] = isset ( $ parts [ 1 ] ) ? trim ( $ parts [ 1 ] ) : '' ; } return $ final_headers ; }
Convert the raw headers string into an associated array

@param string $headers
@return array
Convert the raw headers string into an associated array