Re: Advice on Constants - Notice: Undefined Constant (philip version)

From: Date: Wed, 09 Apr 2003 18:17:46 +0000
Subject: Re: Advice on Constants - Notice: Undefined Constant (philip version)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143136@lists.php.net to get a copy of this message
Hi, When a constant is defined, all instances of the constant in the script get replaced by the value assigned to it. If you are unsure of the name the constant carries, constant() can be used to deduce that. --- Philip Olson <philip@cornado.com> wrote: > > As regarding to your question, the constant is > defined > > and replaced internally in all your places in your > php > > script. > > > > Incase you want to store a constant value > dynamically > > you need to call a function called "constant", > which > > returns the value of a constant. > > I'm unsure what the above means, please explain as > it > looks a little misleading. > > Regards, > Philip > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== ********************************* Know more about me: http://www.geocities.com/mimodit ********************************* __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com

« previous php.general (#143136) next »