Using Constants
| From: | Shawn McKenzie | Date: | Mon, 11 Aug 2003 19:42:03 +0000 |
| Subject: | Using Constants | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-159181@lists.php.net to get a copy of this message | ||
I'm considering using constants for some predefined paths in my script, like
HTML_DIR, INC_DIR. These values won't change and they will be global to all
functions.
Are there any drawbacks to using constants over reg vars for this sort of
thing???
TIA,
Shawn