Re: Re: dynamically naming PHP vars on the fly?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Others have mentioned variable variables. While I have
used those, I tend to prefer arrays:

 $var1 = 'apple';
 $fruits[$var1] = 'organic';
 echo $fruits[$var1];


/Nisse

ah, yes, I see that too, now.  Thanks for reminding me about arrays.
 (You must be quite adept at arrays. )
(And to give you credit Nisse, I ended up going with your solution ('knock on wood'.. it is not all done yet) from the other php-db list (building an array from data returned from the 3 union all selects- query).)

-G

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux