Re: Varible calling a define value

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

 



> 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?

$that = THS

You don't want the quotes.

thnx,
Chris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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