private function getQSEncode($data)
    {
        $req = null;
        foreach ($data as $key => $value) {
            $req .= $key . '=' . urlencode(stripslashes($value)) . '&';
        }

        // cut the last '&'
        $req = substr($req, 0, strlen($req) - 1);

        return $req;
    }
private function getQSEncode($data)
    {
        $req = null;
        foreach ($data as $key => $value) {
            $req .= $key . '=' . urlencode(stripslashes($value)) . '&';
        }

        // cut the last '&'
        $req = substr($req, 0, strlen($req) - 1);

        return $req;
    }
private function getQSEncode ( $ data ) { $ req = null ; foreach ( $ data as $ key => $ value ) { $ req .= $ key . '=' . urlencode ( stripslashes ( $ value ) ) . '&' ; } // cut the last '&' $ req = substr ( $ req , 0 , strlen ( $ req ) - 1 ) ; return $ req ; }
Encodes the given data into a query string format

@param $data - array of string elements to be encoded

@return string - encoded request
Encodes the given data into a query string format