Re: Varible calling a define value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux