public static function toQueryString($options = array())
    {
        $temp = array();
        uksort($options, 'strnatcasecmp');
        foreach ($options as $key => $value) {
            if (is_string($key) && !is_array($value)) {
                $temp[] = rawurlencode($key) . '=' . rawurlencode($value);
            }
        }
        return implode('&', $temp);
    }
public static function toQueryString($options = array())
    {
        $temp = array();
        uksort($options, 'strnatcasecmp');
        foreach ($options as $key => $value) {
            if (is_string($key) && !is_array($value)) {
                $temp[] = rawurlencode($key) . '=' . rawurlencode($value);
            }
        }
        return implode('&', $temp);
    }
public static function toQueryString ( $ options = array ( ) ) { $ temp = array ( ) ; uksort ( $ options , 'strnatcasecmp' ) ; foreach ( $ options as $ key => $ value ) { if ( is_string ( $ key ) && ! is_array ( $ value ) ) { $ temp [ ] = rawurlencode ( $ key ) . '=' . rawurlencode ( $ value ) ; } } return implode ( '&' , $ temp ) ; }
Generate query params

@param array $options: a key-value pair array.
@return string: the key-value list in the format such as key1=value1&key2=value2
Generate query params