<div dir="ltr">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</div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On 9 May 2014 11:02, Matt Gray <span dir="ltr"><<a href="mailto:matt.gray@7digital.com" target="_blank">matt.gray@7digital.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="">On 9 May 2014 10:16, beatnut <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br>
</div><div class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Does it possible to use $arg_name as an array?<br>
For example<br>
I've query string : ?opt[test]=1<br>
<br>
I'd like to get value od opt[test] but $arg_opt[test] doesn't work.<br>
<br>
Is there special syntax for that case?<br></blockquote><div><br></div></div><div>This thread might be of interest: <a href="http://forum.nginx.org/read.php?11,241016" target="_blank">http://forum.nginx.org/read.php?11,241016</a></div>
<div><br>
</div><div>I haven't tested it but it suggests that the syntax ${arg_opt[test]} might do what you require.</div><div><br></div><div><br></div></div>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font color="#000000" face="Arial, sans-serif"><b>Matt Gray</b></font><br style="color:rgb(0,0,0);font-family:Arial,sans-serif"><font color="#000000" face="Arial, sans-serif">API Developer</font><br style="color:rgb(0,0,0);font-family:Arial,sans-serif">
<br style="color:rgb(0,0,0);font-family:Arial,sans-serif"><b style="color:rgb(0,0,0);font-family:Arial,sans-serif">T:</b><span style="color:rgb(0,0,0);font-family:Arial,sans-serif"> +44(0)207 099 7777 </span><br style="color:rgb(0,0,0);font-family:Arial,sans-serif">
<b style="color:rgb(0,0,0);font-family:Arial,sans-serif">E:</b><span style="color:rgb(0,0,0);font-family:Arial,sans-serif"> </span><a href="mailto:matt.gray@7digital.com" style="color:rgb(0,51,204);font-family:Arial,sans-serif" target="_blank">matt.gray@7digital.com</a><span style="color:rgb(0,0,0);font-family:Arial,sans-serif"> </span><br style="color:rgb(0,0,0);font-family:Arial,sans-serif">
<b style="color:rgb(0,0,0);font-family:Arial,sans-serif">W:</b><span style="color:rgb(0,0,0);font-family:Arial,sans-serif"> </span><a href="http://www.google.com/url?q=http%3A%2F%2Fwww.7digital.com&sa=D&sntz=1&usg=AFrqEzeLlO75mVeA-8Yi-niLjEpFokXaYA" style="color:rgb(0,51,204);font-family:Arial,sans-serif" target="_blank">www.7digital.com</a><span style="color:rgb(0,0,0);font-family:Arial,sans-serif"> </span><br>
</div>
</div>

<br>
<span style="font-size:7.5pt;font-family:Verdana,sans-serif"><img src="http://www.7digital.com/stores/assets/7digital.com/7d_EmailSignature.gif"><br><br>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.<br><br></span><font style="font-family:Arial,Helvetica,sans-serif" size="1"><font style="font-family:Arial,Helvetica,sans-serif" size="1">7digital Limited. Registered office:</font><font style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em" size="1"> </font><font face="Arial, Helvetica, sans-serif" size="1">69 Wilson Street, London EC2A 2BB</font><span style="font-family:Arial,Helvetica,sans-serif;font-size:x-small">.<br>Registered in</span><font size="1"> England and Wales. Registered No. 04843573.</font></font>