You are here: Re: Does PHP5 support dynamic variables? « PHP Language « IT news, forums, messages
Re: Does PHP5 support dynamic variables?

Posted by Old Caledonia on 09/27/07 21:19

"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 help 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 help with was understanding why $categoryvalue would
be empty.

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация