Afficher un message
Vieux 27/09/2007, 22h19   #3
Old Caledonia
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Does PHP5 support dynamic variables?


"Steve" <no.one@example.com> wrote in message
news:tMUKi.92$Ga7.49@newsfe06.lga...
>
> "Old Caledonia" <oldcaledonia@tiscali.co.uk> wrote in message
> news:deGdndSVNucyjmHbnZ2dnUVZ8s6gnZ2d@bt.com...
>> Hi,
>>
>> I'm in the process of upgrading an aged php application to php5
>> compatibility.

>
>> $categoryvalue = ${$tempbox};

>
> listen, this construct is not called or known by 'dynamic
> variables'...which would be a moot point. [hint: 'variable'] ;^)
>
> anyway, yes, the $$variable and ${$variable} *variable variable* (not just
> symantics) construct is very much alive in php 5 - most often used by
> those who have programmed themselves into a corner. ;^)
>
> you could yourself out with 3 lines of code to imperically answer
> your own question.


Okay so a variable would be dynamic - I understand - I didn't write the
code, I just copied and pasted it. The 'dynamic variable' comment was there
from before. And I accept that to answer the question I could have
constructed another procedure to test if PHP5 did/did_not support the
construct. So I guess I asked the wrong question then - sorry about that
:¬)

What I really need some with was understanding why $categoryvalue would
be empty.




  Réponse avec citation
 
Page generated in 0,04645 seconds with 9 queries