TwitterAPIExchange.php
private function buildAuthorizationHeader($oauth) 
    {
        $return = 'Authorization: OAuth ';
        $values = array();
        
        foreach($oauth as $key => $value)
        {
            $values[] = "$key=\"" . rawurlencode($value) . "\"";
        }
        
        $return .= implode(', ', $values);
        return $return;
    }
private function buildAuthorizationHeader($oauth) 
    {
        $return = 'Authorization: OAuth ';
        $values = array();
        
        foreach($oauth as $key => $value)
        {
            $values[] = "$key=\"" . rawurlencode($value) . "\"";
        }
        
        $return .= implode(', ', $values);
        return $return;
    }
private function buildAuthorizationHeader ( $ oauth ) { $ return = 'Authorization: OAuth ' ; $ values = array ( ) ; foreach ( $ oauth as $ key => $ value ) { $ values [ ] = "$key=\"" . rawurlencode ( $ value ) . "\"" ; } $ return .= implode ( ', ' , $ values ) ; return $ return ; }
Private method to generate authorization header used by cURL

@param array $oauth Array of oauth data generated by buildOauth()

@return string $return Header used by cURL for request
Private method to generate authorization header used by cURL