protected function encodeData($params)
    {
        $data = array();
        foreach ($params as $key => $value) {
            $key = preg_replace('/_[0-9]$/', '', $key);
            $data[] = $key . '=' . urlencode($value);
        }

        return implode('&', $data);
    }
protected function encodeData($params)
    {
        $data = array();
        foreach ($params as $key => $value) {
            $key = preg_replace('/_[0-9]$/', '', $key);
            $data[] = $key . '=' . urlencode($value);
        }

        return implode('&', $data);
    }
protected function encodeData ( $ params ) { $ data = array ( ) ; foreach ( $ params as $ key => $ value ) { $ key = preg_replace ( '/_[0-9]$/' , '' , $ key ) ; $ data [ ] = $ key . '=' . urlencode ( $ value ) ; } return implode ( '&' , $ data ) ; }
Parse and encode data

@param array $params
@return string
Parse and encode data