|
Posted by Steve on 09/27/07 21:22
"Old Caledonia" <oldcaledonia@tiscali.co.uk> wrote in message
news:GfadnSHXkKfLg2HbnZ2dnUVZ8sOonZ2d@bt.com...
>
> "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.
that's a whole other ball of wax! your code doesn't show where/how $tempbox
is being set.
just for fun, is the data entry form in the genre of a grid? ;^)
Navigation:
[Reply to this message]
|