Echo CONSTANT in $text_var
Posted: Thu Sep 25, 2008 2:25 am
Hi,
I have a constant that I want to display within my content text.
But that just outputs FEEDBACK.
I've solved it by assigning a var to it ($feedback) and then write {$feedback} in the variable, which works.
But I want to skip that step and just be able to write it in the var.
thanks
I have a constant that I want to display within my content text.
Code: Select all
define("FEEDBACK", "mail to bla@bla.com for problems");
$text = "bla bla FEEDBACK bla bla;I've solved it by assigning a var to it ($feedback) and then write {$feedback} in the variable, which works.
Code: Select all
$feedback = FEEDBACK;
$text "bla {$feedback} yada yada";thanks