• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. Functions > Variables and Functions

Variables and Functions

When using variables in conjunction with functions, you need to follow several rules to avoid errors and increase consistency.

First, you should be cautious when using a variable name that's the same as the name of a parameter in the function when they both reside in the same script. This should be common sense (if for no other reason than for the sake of organized code), but let's say it happens anyway.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint