src/Header.php
public static function parse($value)
    {
        $values = explode(':', $value, 2);
        if (count($values) !== 2) {
            return;
        }

        return new static($values[0], trim($values[1]));
    }
public static function parse($value)
    {
        $values = explode(':', $value, 2);
        if (count($values) !== 2) {
            return;
        }

        return new static($values[0], trim($values[1]));
    }
public static function parse ( $ value ) { $ values = explode ( ':' , $ value , 2 ) ; if ( count ( $ values ) !== 2 ) { return ; } return new static ( $ values [ 0 ] , trim ( $ values [ 1 ] ) ) ; }
Parses a header string value.

@param  string $header A header string value.
@return object         A header collection.
Parses a header string value .