global variable

variable in javascript

JavaScript Variable

JavaScript Variable are containers for storing data values. The value of a variable can change throughout the program. there are two types of variable:Local variable & global variable. Use the var keyword to declare a variable: Example: JavaScript local variable A local variable will be visible only within a function where it is defined. Function …

JavaScript Variable Read More »

Variable Scope in PHP

PHP Variable Scope

PHP Variable Scope can be defined as the range of availability a variable has to the program in which it is declared. PHP has three types of variable scopes: i. Local variableii. Global variableiii. Static variable Local variable The variables that are declared within a function are called local variables for that function. These local …

PHP Variable Scope Read More »