Menu
[CODE]
$foo=”xyz”;
$data = <<<EOD
Hello $foo world.<br>
EOD;
$foo=”aaa”;echo($data);
$foo=”bbb”;echo($data);
$foo=”ccc”;echo($data);
I expect the PHP code above to produce this…
Hello aaa world.
Hello bbb world.
Hello ccc world.
…but it is unexpectedly producing this…
Hello xyz world.
Hello xyz world.
Hello xyz world.
How can I fix this problem?