ShoppingCart_Controller::params_to_get_string PHP Method

params_to_get_string() protected static method

Produces string such as: MyParam%3D11%26OtherParam%3D1 ...which decodes to: MyParam=11&OtherParam=1 you will need to decode the url with javascript before using it.
protected static params_to_get_string ( $array )
    protected static function params_to_get_string($array)
    {
        if ($array & count($array > 0)) {
            array_walk($array, create_function('&$v,$k', '$v = $k."=".$v ;'));
            return "?" . implode("&", $array);
        }
        return "";
    }