array-var-nginx-module icon indicating copy to clipboard operation
array-var-nginx-module copied to clipboard

How to get array positioned values and assign it to variable?

Open gowthaman-new opened this issue 8 years ago • 2 comments

Hi, This module is awesome. How can i split array and assign array[0] to one variable(called A). split array[1] assign it to second variable(called B) and so on. May i know how i can achieve this. If there is any other way please let me know.

gowthaman-new avatar Dec 03 '17 17:12 gowthaman-new

@gowthaman-new If a particular usage is not mentioned in the docs or the test suite, then it is not there. You are always welcome to contribute pull requests for any new features. Thanks!

agentzh avatar Dec 04 '17 21:12 agentzh

@gowthaman-new Nowadays it's recommended, however, to use the ngx_lua module for such fancy stuff:

https://github.com/openresty/lua-nginx-module/

It can be much more flexible and much safer while still keeping great performance.

agentzh avatar Dec 04 '17 21:12 agentzh