protected function urlEncodeArray(array $encode)
    {
        $encoded = '';
        foreach ($encode as $name => $value) {
            $encoded .= '&'.urlencode($name).'='.urlencode($value);
        }

        return substr($encoded, 1);
    }
protected function urlEncodeArray(array $encode)
    {
        $encoded = '';
        foreach ($encode as $name => $value) {
            $encoded .= '&'.urlencode($name).'='.urlencode($value);
        }

        return substr($encoded, 1);
    }
protected function urlEncodeArray ( array $ encode ) { $ encoded = '' ; foreach ( $ encode as $ name => $ value ) { $ encoded .= '&' . urlencode ( $ name ) . '=' . urlencode ( $ value ) ; } return substr ( $ encoded , 1 ) ; }
A small helper to url-encode an array.

@param array $encode

@return string
A small helper to url - encode an array .