Home > Articles > Operating Systems, Server > Linux/UNIX/Open Source

  • Print
  • + Share This

Valid Characters

Part of naming variables wisely is knowing which characters are valid characters to be used in the varname. Valid characters for varnames are the letters of the alphabet (both upper- and lowercase), numbers, and the underscore character. One caveat is that the varname cannot start with a number. For example, consider the following varnames:


The second is not a legal varname, but the rest are. Notice that the last example begins with an underscore, which is valid. The second one is not valid because it begins with a number.

  • + Share This
  • 🔖 Save To Your Account

Related Resources

There are currently no related titles. Please check back later.