benefit of constants
| From: | Wizaerd) | Date: | Fri, 02 Mar 2001 19:48:44 +0000 |
| Subject: | benefit of constants | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-42387@lists.php.net to get a copy of this message | ||
Other than the fact you cannot overwrite them (which helps with carelessness), is there any real benefit to declaring a CONSTANT over just defining a variable? In typical compiled programs, I believe constants or macros don't load into the symbol table, thus reducing memory requirements for the executable. But since PHP isn't a compiled program, but a script parser, is there any real benefit?