Re: accessing CONSTANTS
| From: | Jason Brooke | Date: | Sun, 01 Oct 2000 02:00:38 +0000 |
| Subject: | Re: accessing CONSTANTS | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18185@lists.php.net to get a copy of this message | ||
define ("ADMIN", "admin@xyz.com");
echo "send mail to <a href=\"mailto: ". ADMIN.
"\">admin</a>";
jason
> thanx to those who helped me with the question on < and > characters! :)
>
> another question i have is regarding accessing constants. eg,
>
> define ("ADMIN", "admin@xyz.com");
> echo "send mail to <a href=\"mailto:
> ADMIN\">admin</a>"
>
> PHP interperts ADMIN as a string... is there anyway to access the value
> of a constant?
>
> $ad = ADMIN doesn't do the trick either... it again evaluates ADMIN to be
> the string "ADMIN"...
>
> thanx in advance!
>
> ----------------
> remco chang
> bountyquest.com