protected function prepareHeaders(array $rawHeaders)
    {
        $headers = array();
        
        foreach ($rawHeaders as $rawHeader) {
            if (strpos($rawHeader, ':')) {
                $data = explode(':', $rawHeader);
                $headers[$data[0]][] = trim($data[1]);
            }            
        }
        
        return $headers;
    }
protected function prepareHeaders(array $rawHeaders)
    {
        $headers = array();
        
        foreach ($rawHeaders as $rawHeader) {
            if (strpos($rawHeader, ':')) {
                $data = explode(':', $rawHeader);
                $headers[$data[0]][] = trim($data[1]);
            }            
        }
        
        return $headers;
    }
protected function prepareHeaders ( array $ rawHeaders ) { $ headers = array ( ) ; foreach ( $ rawHeaders as $ rawHeader ) { if ( strpos ( $ rawHeader , ':' ) ) { $ data = explode ( ':' , $ rawHeader ) ; $ headers [ $ data [ 0 ] ] [ ] = trim ( $ data [ 1 ] ) ; } } return $ headers ; }
Returns the header as an associated array

@param array $rawHeaders

@return array
Returns the header as an associated array