protected function _params2string($params)
    {
        if (!count($params)) {
            return '';
        }
        $paramsPart = array();
        foreach ($params as $name => $value) {
            if (!$value && ('0' !== $value)) {
                continue;
            }
            $paramsPart[] = str_replace(array('{name}', '{value}'), array($name, urlencode($value)), $this->paramsPairStructure);
        }
        if (!count($paramsPart)) {
            return '';
        }
        return '/' . implode($this->paramsSeparator, $paramsPart);
    }
protected function _params2string($params)
    {
        if (!count($params)) {
            return '';
        }
        $paramsPart = array();
        foreach ($params as $name => $value) {
            if (!$value && ('0' !== $value)) {
                continue;
            }
            $paramsPart[] = str_replace(array('{name}', '{value}'), array($name, urlencode($value)), $this->paramsPairStructure);
        }
        if (!count($paramsPart)) {
            return '';
        }
        return '/' . implode($this->paramsSeparator, $paramsPart);
    }
protected function _params2string ( $ params ) { if ( ! count ( $ params ) ) { return '' ; } $ paramsPart = array ( ) ; foreach ( $ params as $ name => $ value ) { if ( ! $ value && ( '0' !== $ value ) ) { continue ; } $ paramsPart [ ] = str_replace ( array ( '{name}' , '{value}' ) , array ( $ name , urlencode ( $ value ) ) , $ this -> paramsPairStructure ) ; } if ( ! count ( $ paramsPart ) ) { return '' ; } return '/' . implode ( $ this -> paramsSeparator , $ paramsPart ) ; }
Get query params from array.
@param $params
@return string
Get query params from array .