private function parseHeaderLine($line)
    {
        $matches = [];
        if (preg_match('/^([^:]+):(.*)$/', $line, $matches) === 1) {
            $this->addHeader(trim($matches[1]), trim($matches[2]));
        }
    }
private function parseHeaderLine($line)
    {
        $matches = [];
        if (preg_match('/^([^:]+):(.*)$/', $line, $matches) === 1) {
            $this->addHeader(trim($matches[1]), trim($matches[2]));
        }
    }
private function parseHeaderLine ( $ line ) { $ matches = [ ] ; if ( preg_match ( '/^([^:]+):(.*)$/' , $ line , $ matches ) === 1 ) { $ this -> addHeader ( trim ( $ matches [ 1 ] ) , trim ( $ matches [ 2 ] ) ) ; } }
Parse a plain header line if required
@param  string $line The line to parse: "Name: Value"
@return boolean
Parse a plain header line if required