O'Reilly logo

Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started by Charlie Arehart, Raymond Camden, Ben Forta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required