protected function toHeader(array $params)
    {
        $out    = '';
        $last   = end($params);

        foreach ($params as $k => $v) {
            $out .= $k.'="'.$v.'"';

            if ($v != $last) {
                $out .= ',';
            }
        }

        return $out;
    }
protected function toHeader(array $params)
    {
        $out    = '';
        $last   = end($params);

        foreach ($params as $k => $v) {
            $out .= $k.'="'.$v.'"';

            if ($v != $last) {
                $out .= ',';
            }
        }

        return $out;
    }
protected function toHeader ( array $ params ) { $ out = '' ; $ last = end ( $ params ) ; foreach ( $ params as $ k => $ v ) { $ out .= $ k . '="' . $ v . '"' ; if ( $ v != $ last ) { $ out .= ',' ; } } return $ out ; }
Build authorization header from array

@access public
@param  array  $params
@return string
Build authorization header from array