Is there anyway to print a global variable in a double quoted string, assuming the variable was created with DEFINE and therefore has no leading $?
for instance, this works fine:
$my_var = 'something';
echo "sdflkjsdflks{$my_var}zxc";
however, this won't:
define ("MY_VAR", "something");
echo "sdfsdflkj{MY_VAR}zxc";
I realize that this can be accomplished with: echo 'sdflkjsdflks' . MY_VAR . 'zxc';
but i'd like to print it within the string. Thanks
-Jim Keller