|
-
Jul 26th, 2009, 09:33 AM
#4
Re: Define or Variable(For languages, config....)
Defined constants have global scope, and cannot be changed in the script. Therefore they ought to be data that meets those criteria: globally used values that will not need to change. For your example, I would say define is more appropriate (though I would use more specific naming, like "DB_USERNAME" - also the naming convention for constants is all caps).
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|