Posted by Janwillem Borleffs on 12/19/06 22:25
hihibibihi@hotmail.com wrote:
> Trying to get $foo="YES" into $text, but NO appears instead. Any
> ideas?
>
The way you are doing it, $text has already been assigned a value before
you're setting the new value for $foo.
Turn it around and you will be fine:
$foo="NO";
if (TRUE) {
$foo="YES";
}
$text=<<<EO
The variable is named: $foo
EO;
print $text;
JW
[Back to original message]
|