On Fri, Apr 30, 2010 at 7:24 PM, CED <cons...@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

Reply via email to