[nycphp-talk] PHP Dynamic GET Variables , Do they exist?
CED
consult at covenantedesign.com
Fri Apr 30 20:32:24 EDT 2010
Chris Snyder wrote:
> On Fri, Apr 30, 2010 at 7:24 PM, CED <consult at covenantedesign.com> wrote:
>
>> <?php
>> //GIVEN a page that is called with:
>> // $_GET['abc'] = 'def';
>> //CODED with:
>> $dynamic_vars['a']['b'] = 'abc';
>>
>> // NO WORKY
>> echo $_GET[ $dynamic_vars['a']['b'] ] ;
>>
>> // NO WORKY
>>
>> if(isset($_GET[ $dynamic_vars['a']['b'] ])){
>> echo $_GET[ $dynamic_vars['a']['b'] ] ;
>> }
>> ?>
>>
>> What am I doing wrong?
>> (this is obviously for demonstration purposes only, the actually variables
>> have need for being stored in the manner that they are)
>>
>> -Ed
>>
>
> Sample code works for me, php 5.3.2.
> _______________________________________________
> New York PHP Users Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/Show-Participation
That has got to be it then... 5.2.3 on this box... checking the
changelog now; Thank you Mr. Snyder. :D
--
<img src="http://covenantedesign.com/logo.jpg" border ="0">
995 Maple Hill Road
Castleton, New York 12033
518-331-5061
Consult at CovenanteDesign.com
More information about the talk
mailing list