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 Def
[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;
--
PHP Gen
> 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 Gene
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
4 matches
Mail list logo