note 59737 deleted from language.oop5.constants by felipe
| From: | felipe@php.net | Date: | Sat, 15 Dec 2007 02:09:52 +0000 |
| Subject: | note 59737 deleted from language.oop5.constants by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133528@lists.php.net to get a copy of this message | ||
Note Submitter: spiritus.canis at gmail dot com
----
RE: mail at erwindoornbos dot nl
Sure, that'll work, but you'll have the same constant defined for your entire application.
Using class constants allows you to re-use the name of a constant while 1) holding a different
value in different classes, and 2) giving you the ability to reference them from a static context.