RE: [PHP] Varible calling a define value

From: Date: Mon, 13 Dec 2004 21:43:17 +0000
Subject: RE: [PHP] Varible calling a define value
Groups: php.general 
Request: Send a blank email to php-general+get-204230@lists.php.net to get a copy of this message
[snip] Currently i have a Defiune setup of: define("THS", "This is a test"); I also have a string value of $that='THS'; When I echo out $that it get THS. I want to echo out $that and get: This is a test. How can I do this? [/snip] Remove the quotes around THS $that = THS; echo $that;

« previous php.general (#204230) next »