note 45481 deleted from function.define by nlopess
| From: | nlopess@php.net | Date: | Thu, 09 Sep 2004 09:29:22 +0000 |
| Subject: | note 45481 deleted from function.define by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76304@lists.php.net to get a copy of this message | ||
Note Submitter: art at sfsw dot net
----
define creates constants, NOT variables.
Any subsequent define using the same name will not overwrite the first instance:
define( 'MY_DEF', 'xyz' );
define( 'MY_DEF', 'abc' );
the value of MY_DEF is now 'xyz' as it is a constant, the second define does not overwrite
the first.