RE: [PHP-DB] PHP Variables...
| From: | Kristian Duske | Date: | Sun, 12 Aug 2001 13:04:45 +0000 |
| Subject: | RE: [PHP-DB] PHP Variables... | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-11265@lists.php.net to get a copy of this message | ||
> When I define a variable like this....
>
> define("ADMIN_BG","cccc99");
>
> How do I call the variable later:
>
> like $ADMIN_BG
> or just ADMIN_BG
The define statement does not create a variable, but a constant that can not
be changed later in your script. You reference constants with their sole
name, in your case
ADMIN_BG
Creating a variable is done simply by:
$foo = "bar";
Kristian