Posted by Balazs Wellisch on 01/21/06 07:52
>
> 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
Navigation:
[Reply to this message]
|