able to go Hello $username or Hello $this->username for example , is
there any way to do this ?
-Original Message-
From: Dan Rossi [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 23, 2003 9:09 AM
To: Jim Lucas; Daniel Diehl; 'Php-General'
Subject: RE: [PHP] variales within def
unday, March 23, 2003 3:43 AM
To: Dan Rossi; Daniel Diehl; 'Php-General'
Subject: Re: [PHP] variales within define constants
yes, you can do this, but you have the order wrong.
you must set the variable before you use it.
and you must have double quotes around the variable in the define
"'Php-General'"
<[EMAIL PROTECTED]>
Sent: Saturday, March 22, 2003 4:44 AM
Subject: RE: [PHP] variales within define constants
> ?? why would i not try it before posting heh :O
>
> -Original Message-
> From: Daniel Diehl [mailto:[EMAIL PROTECTED]
&
?? why would i not try it before posting heh :O
-Original Message-
From: Daniel Diehl [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 23, 2003 12:23 AM
To: 'Dan Rossi'; 'Php-General'
Subject: RE: [PHP] variales within define constants
Just try it :)
> -Origi
Just try it :)
> -Original Message-
> From: Dan Rossi [mailto:[EMAIL PROTECTED]
> Sent: Samstag, 22. März 2003 08:09
> To: Php-General
> Subject: [PHP] variales within define constants
>
>
> hi guys i'm sure i've done this before but is it possible
hi guys i'm sure i've done this before but is it possible ?
i would like it to show up like this
define('CONSTANT','Hello $var');
$var = "Dan";
echo CONSTANT
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
6 matches
Mail list logo