Re: accessing CONSTANTS

From: Date: Sun, 01 Oct 2000 14:32:43 +0000
Subject: Re: accessing CONSTANTS
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18204@lists.php.net to get a copy of this message
really? this works for you? cause this doesn't work for me... ADMIN still shows up as the string "ADMIN." if this works for you, maybe i should look into my code more carefully... :P ---------------- remco chang bountyquest.com On Sun, 1 Oct 2000, Jason Brooke wrote: > > 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 > > > > >

« previous php.general (#18204) next »