src/Request.php
public function extractFromHeader(string $key, string $value) : array
    {
        $meta = $this->header($key);

        if (false !== strpos($meta, $value)) {
            $meta = trim(str_replace($value, '', $meta));

            return explode(' ', $meta) ?? [];
        }

        return [];
    }
public function extractFromHeader(string $key, string $value) : array
    {
        $meta = $this->header($key);

        if (false !== strpos($meta, $value)) {
            $meta = trim(str_replace($value, '', $meta));

            return explode(' ', $meta) ?? [];
        }

        return [];
    }
public function extractFromHeader ( string $ key , string $ value ) : array { $ meta = $ this -> header ( $ key ) ; if ( false !== strpos ( $ meta , $ value ) ) { $ meta = trim ( str_replace ( $ value , '' , $ meta ) ) ; return explode ( ' ' , $ meta ) ?? [ ] ; } return [ ] ; }
Extract metadata from header.

@param string $key
@param string $value

@return array
Extract metadata from header .