Re: Varible calling a define value
| From: | Dev | Date: | Mon, 13 Dec 2004 21:50:06 +0000 |
| Subject: | Re: Varible calling a define value | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-204232@lists.php.net to get a copy of this message | ||
I actually figure this out from the web site and had to use constant();
At 04:36 PM 12/13/2004, you wrote:
Hello all, I am setting up a page that I would like to use DEFINE to retrieve more information about abriviations in a database. The database part all works just fine. 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? ---------- UMPA Brian C. Doyle Director, Internet Services United Merchant Processing Association <http://www.umpa-us.com>http://www.umpa-us.com 1-800-555-9665 ext 212---------- UMPA Brian C. Doyle Director, Internet Services United Merchant Processing Association <http://www.umpa-us.com>http://www.umpa-us.com 1-800-555-9665 ext 212