protected function dispatchHeaderValue($header)
    {
        $header = explode(':', $header, 2);

        if (count($header) < 2) {
            return null;
        }

        return array(
            'name' => trim($header[0]),
            'value' => trim($header[1]),
        );
    }
protected function dispatchHeaderValue($header)
    {
        $header = explode(':', $header, 2);

        if (count($header) < 2) {
            return null;
        }

        return array(
            'name' => trim($header[0]),
            'value' => trim($header[1]),
        );
    }
protected function dispatchHeaderValue ( $ header ) { $ header = explode ( ':' , $ header , 2 ) ; if ( count ( $ header ) < 2 ) { return null ; } return array ( 'name' => trim ( $ header [ 0 ] ) , 'value' => trim ( $ header [ 1 ] ) , ) ; }
Get key-value array

@see https://stackoverflow.com/questions/9183178/can-php-curl-retrieve-response-headers-and-body-in-a-single-request

@param $header

@return array|null
Get key - value array