Posted by windandwaves on 01/21/06 11:35
Balazs Wellisch wrote:
>> define("a1", "b");
>> echo a1
>> $y = 1;
>> $x = "a".$y
>> echo contant($x);
>>
>> for the last line I get an error. How can I fix this?
>
> Just check your spelling and punctuation!
>
> define("a1", "b");
> echo a1;
> $y = 1;
> $x = "a".$y;
> echo constant($x);
>
> It works.
>
> Balazs
it was actually just an example. In real life it is not working! It is a
pretty old version of PHP, could that be it? It does recognise constant as
a function though. It was all rather weird.
[Back to original message]
|