Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: How to know the last arg in a series Date: Mon, 19 Sep 2016 18:53:11 +0200 Lines: 34 Message-ID: References: <1b8fa718-fcde-4e92-9ad3-cc69e41f5a0b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net a3UsK6KJP6r9q/XafdFVvAjx9z5UlO3H48Omu1NjZlDcQkr1mw Cancel-Lock: sha1:8TrRpg3sfI2m2MZlUhPc8TIRG58= X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 In-Reply-To: <1b8fa718-fcde-4e92-9ad3-cc69e41f5a0b@googlegroups.com> Xref: csiph.com comp.lang.php:17066 On 09/19/2016 08:51 AM, bit-naughty@hotmail.com wrote: > If I have a page where there are args like "arg1=2&arg2=93&arg3=112", and so on, but there is No Limit to how many "arg"s there can be, how do I find out which one the last arg is ("arg3" in the above case)? > > > Thanks. > With the huge amount of information I just assumed that you wanted to play with the QUERY_REQUEST _SERVER value. This solution do not use regexp, which would be a better solution: If it was something else you wanted, then please describe your problem in detail, so that we can understand what you are trying to do. -- //Aho