Re: PHP Variables...

From: Date: Fri, 10 Aug 2001 19:25:30 +0000
Subject: Re: PHP Variables...
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-11234@lists.php.net to get a copy of this message
define() doesn't define a variable, it defines a constant. You do not put a $ before a constant if you want to display it. It acts much like the #define C pre-processor statement if you're famliar with them. See http://www.php.net/manual/en/function.define.php for complete documentation. Justin Buist Trident Technology, Inc. 4700 60th St. SW, Suite 102 Grand Rapids, MI 49512 Ph. 616.554.2700 Fx. 616.554.3331 Mo. 616.291.2612 On Fri, 10 Aug 2001, grant wrote: > On Fri, 10 Aug 2001, Brian Grayless wrote: > > > 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 > > > Variable always have the $ in front of them. > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#11234) next »