Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started
by Ben Forta, Raymond Camden, Charlie Arehart
Variable Naming
This would be a good place to discuss variable naming. When you create a variable you get to name it, and the choice of names is up to you. However, you need to know a few rules about variable naming:
Variable names can contain alphanumeric characters but can’t begin with a number (so result12 is okay, but 4thresult is not).
Variable names can’t contain spaces. If you need to separate words, use underscores (for example, monthly_sales_figures instead of monthly sales figures).
Aside from the underscore, non-alphanumeric characters can’t be used in variable names (so Sales!, SSN#, and first-name are all invalid).
Variable names are case insensitive (FirstName is the same as FIRSTNAME, which is the same as firstname, which is the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access