Variable Scope in PHP: A variable’s scope is defined as the program’s range in which it can be accessed. To put it another way, “the scope of a variable is the area of the program within which it is defined and may be accessed.”