hello.
<?php
define("MY_CONSTANT", "http://google.com/");
$my_string = <<<QQQ
MY_CONSTANT: does not work for obvious reasons
{MY_CONSTANT}: does not work for obvious reasons
{$MY_CONSTANT}: does not work for obvious reasons
QQQ;
?>
here are my options:
1. assign the constant to a temporary variable and then use that.
i.e. $tmp_MY_CONSTANT = MY_CONSTANT;
2. use an array instead of a constant
i.e. $config['MY_CONSTANT'] = "http://google.com/";
3. find some secret way to work around the above two options and keep
my constants.
anybody have any ideas to share?
chris.
p.s. if you don't know the "obvious reasons" just say so and i (or
someone else) will explain.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php