Welcome! Log In Create A New Profile

Advanced

Re: $arg_name as an array

Matt Gray
May 09, 2014 06:06AM
Note that this is not "treating $arg_name as an array", it's simply
allowing you to use the [] characters in a variable name - usually only
a-z0-9_ is allowed


On 9 May 2014 11:02, Matt Gray <matt.gray@7digital.com> wrote:

> On 9 May 2014 10:16, beatnut <nginx-forum@nginx.us> wrote:
>
>>
>> Does it possible to use $arg_name as an array?
>> For example
>> I've query string : ?opt[test]=1
>>
>> I'd like to get value od opt[test] but $arg_opt[test] doesn't work.
>>
>> Is there special syntax for that case?
>>
>
> This thread might be of interest:
> http://forum.nginx.org/read.php?11,241016
>
> I haven't tested it but it suggests that the syntax ${arg_opt[test]} might
> do what you require.
>
>
>


--
*Matt Gray*
API Developer

*T:* +44(0)207 099 7777
*E:* matt.gray@7digital.com
*W:* www.7digital.comhttp://www.google.com/url?q=http%3A%2F%2Fwww.7digital.com&sa=D&sntz=1&usg=AFrqEzeLlO75mVeA-8Yi-niLjEpFokXaYA

--


This email, including attachments, is private and confidential. If you have
received this email in error please notify the sender and delete it from
your system. Emails are not secure and may contain viruses. No liability
can be accepted for viruses that might be transferred by this email or any
attachment. Any unauthorised copying of this message or unauthorised
distribution and publication of the information contained herein are
prohibited.

7digital Limited. Registered office: 69 Wilson Street, London EC2A 2BB.
Registered in England and Wales. Registered No. 04843573.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

$arg_name as an array

beatnut May 09, 2014 05:16AM

Re: $arg_name as an array

Jonathan Matthews May 09, 2014 05:56AM

Re: $arg_name as an array

Matt Gray May 09, 2014 06:04AM

Re: $arg_name as an array

Matt Gray May 09, 2014 06:06AM

Re: $arg_name as an array

beatnut May 09, 2014 06:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready