Re: [PHP] accessing CONSTANTS From: Jason Brooke (jason <email protected>)
Date: 09/30/00

define ("ADMIN", "admin <email protected>");
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 <email protected>");
> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>