Yes, I know. You can't use defined constants within a normal string, so it won't work in a heredoc either:
define('FOO', 'bar'); echo "show me FOO"; You have to use: echo 'show me '.FOO; On Mon, 19 Jul 2004 12:05:40 -0700, barophobia <[EMAIL PROTECTED]> wrote: > On Mon, 19 Jul 2004 11:48:02 -0700, Justin Patrin <[EMAIL PROTECTED]> wrote: > > On Mon, 19 Jul 2004 10:22:42 -0700, barophobia <[EMAIL PROTECTED]> wrote: > > > > $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; > > > $my_string = 'pre'.MY_CONSTANT.'post'; > > yeah but did you notice in my example i'm using a heredoc? i did that > on purpose. :) > > chris. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > !DSPAM:40fc1eea223154764716344! > > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php